### Binary Search Tree (BST) Data Structure

A Binary Search tree (BST) is a data structure which has two children nodes…

A Binary Search tree (BST) is a data structure which has two children nodes…

A Binary tree is a data structure which has two children nodes attached to it…

First try to understand question. Its a binary tree, not a binary search tree…

Its every software engineer’s dream to work with the big FAANG companies…

Introduction I will list some of the interesting usage of bitwise operators…

Problem Statement Given a linked list, swap every two adjacent nodes and return…

Problem Statement Given an array nums of n integers and an integer target, find…

Problem Statement Given an array nums of n integers, are there elements a, b, c…

Problem Statement Roman numerals are represented by seven different symbols: I…

Problem Statement Roman numerals are represented by seven different symbols: I…

Problem Statement Write a function to find the longest common prefix string…

Problem Statement Given n non-negative integers a1, a2, …, an , where each…

Problem Statement Determine whether an integer is a palindrome. An integer is a…

Problem Statement Given a linked list, remove the n-th node from the end of list…

Here are some tips while preparing for your coding interviews. 1. Do study or…

This problem is a simple mathematical calculation. Lets start deriving some…

Problem Statement Implement atoi which converts a string to an integer…

Problem Statement Determine whether an integer is a palindrome. An integer is a…

Problem Statement The string “PAYPALISHIRING” is written in a zigzag pattern on…

Problem Statement Given a signed integer, reverse digits of an integer. Return…

Problem Statement Given a string s, find the longest palindromic substring in s…