Problem Statement: Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in

Continue reading# Category: Binary Search Tree

## Check if a tree is a Binary Search Tree or Binary Tree

Problem Statement: Given the root of a binary tree, determine if it is a valid binary search tree (BST). A

Continue reading## Delete a Node in Binary Search Tree

Problem Statement: Given a root node reference of a Binary Search Tree and a key, delete the node with the

Continue reading## Insert a Given Node in Binary Search Tree

Problem Statement: Given a root node reference of a Binary Search Tree and a key, insert a new node with

Continue reading## Ceil in a Binary Search Tree

Problem Statement: Given a BST and a number X, find the Ceil of X.Note: Ceil(X) is a number that is

Continue reading## Floor in a Binary Search Tree

Problem Statement: Given a BST and a number X, find the Floor of X.Note: Floor(X) is a number that is

Continue reading## Introduction to Binary Search Trees

Pre-requisite: Please watch the Binary Trees from this playlist first and then move on to understanding Binary Search Trees. Binary

Continue reading## Check if Binary Tree is BST

Problem Statement: You are given the root of a binary tree. The task is to determine if the given binary

Continue reading## Minimum insertions to make string palindrome | DP-29

Problem Statement: Minimum insertions required to make a string palindrome A palindromic string is a string that is the same

Continue reading## Search in a Binary Search Tree

Write a program to search a node with a given value in a binary search tree. Example: Disclaimer: Don’t jump

Continue reading