Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.8K+ articles
Searching
1.0K+ articles
Tree
909+ articles
Binary Tree
330+ articles
Binary Search Tree
166+ articles
Tree Traversals
106+ articles
tree-traversal
88+ articles
BST
25+ articles
Binary Search Trees
18 posts
Recent Articles
Popular Articles
Top 50 Binary Search Tree Coding Problems for Interviews
Last Updated: 23 July 2025
Binary Search Trees (BST) are like organized lists that help find, add, and remove items quickly. In our article "Top 50 Binary Search Tree Coding Problems for Interviews"...
read more
DSA
interview-preparation
Binary Search Trees
GFG Sheets
DSA Sheet
C Program for Binary Search Tree
Last Updated: 23 July 2025
A binary Search Tree is a binary tree where the value of any node is greater than the left subtree and less than the right subtree. In this article, we will discuss Binary...
read more
C Language
Binary Search Trees
POTD Solutions | 15 Oct' 23 | Normal BST to Balanced BST
Last Updated: 23 July 2025
View all POTD SolutionsWelcome to the daily solutions of our PROBLEM OF THE DAY (POTD). We will discuss the entire problem step-by-step and work towards developing an opti...
read more
DSA
Binary Tree
Binary Search Trees
GFG-POTD-Solutions
What is Binary Search Tree
Last Updated: 23 July 2025
A binary search tree (BST) is a binary tree in which the left subtree of a node contains only nodes with less value and the right subtree of a node contains only nodes wit...
read more
Tree
Picked
DSA
Definitions and Meanings
Binary Search Trees
Maximum absolute difference between the sibling nodes of given BST
Last Updated: 23 July 2025
Given a BST (Binary Search Tree) with N Nodes, the task is to find the maximum absolute difference between the sibling nodes.Two nodes are said to be siblings if they are ...
read more
Tree
Technical Scripter
Technical Scripter 2022
DSA
Binary Search Trees
Search N elements in an unbalanced Binary Search Tree in O(N * logM) time
Last Updated: 23 July 2025
Given an Unbalanced binary search tree (BST) of M nodes. The task is to find the N elements in the Unbalanced Binary Search Tree in O(N*logM) time.Examples:Input: search[]...
read more
Tree
Technical Scripter
Technical Scripter 2022
DSA
Binary Search Trees
Sum of all nodes with smaller values at a distance K from a given node in a BST
Last Updated: 23 July 2025
Given a Binary Search Tree, a target node in the BST, and an integer value K, the task is to find the sum of all nodes that are at a distance K from the target node whose ...
read more
Tree
Mathematical
Binary Search Tree
Recursion
DSA
DFS
Binary Search Trees
Sum of nodes in a Binary Search Tree with values from a given range
Last Updated: 23 July 2025
Given a Binary Search Tree consisting of n nodes and two positive integers l and r, the task is to find the sum of values of all the nodes that lie in the range [l, r].Exa...
read more
Misc
Tree
Queue
Searching
DSA
BST
Tree Traversals
Binary Search Trees
tree-level-order
Iterative approach to check if a Binary Tree is BST or not
Last Updated: 23 July 2025
Given a Binary Tree, the task is to check if the given binary tree is a Binary Search Tree or not. If found to be true, then print "YES". Otherwise, print "NO".Examples:In...
read more
Tree
Stack
DSA
Inorder Traversal
Binary Tree
BST
Binary Search Trees
Kth Smallest element in a Perfect Binary Search Tree
Last Updated: 15 July 2025
Given a Perfect BST with N nodes and an integer K, the task is to find the Kth smallest element is present in the tree.Example:Input:K = 3, N = 15 50 ...
read more
DSA
Complete Binary Tree
interview-preparation
Binary Search Trees
median-finding
Check if the Binary Tree contains a balanced BST of size K
Last Updated: 15 July 2025
Given a Binary Tree and a positive integer K. The task is to check whether the Balanced BST of size K exists in a given Binary Tree or not. If it exists then print “Yes” e...
read more
Tree
Searching
Binary Search Tree
Recursion
DSA
PostOrder Traversal
Binary Tree
tree-traversal
Tree Traversals
Binary Search Trees
Traversal
Binary Search Tree | Set 3 (Iterative Delete)
Last Updated: 15 July 2025
Given a binary search tree and a node of the binary search tree, the task is to delete the node from the Binary Search tree Iteratively.Here are the three cases that arise...
read more
Picked
DSA
Delete Tree
BST
Binary Search Trees
Double Threaded Binary Search Tree
Last Updated: 02 December 2023
Double Threaded Binary Search Tree: is a binary search tree in which the nodes are not every left NULL pointer points to its inorder predecessor and the right NULL pointer...
read more
Tree
Advanced Data Structure
DSA
Binary Tree
BST
tree-traversal
Binary Search Trees
threaded-binary-tree
Check if value exists in level-order sorted complete binary tree
Last Updated: 12 July 2025
Given a level-order sorted complete binary tree, the task is to check whether a key exists in it or not. A complete binary tree has every level except possibly the last, c...
read more
DSA
Binary Search
Binary Search Trees
Find Leftmost and Rightmost node of BST from its given preorder traversal
Last Updated: 12 July 2025
Given a preorder sequence of the binary search tree of N nodes. The task is to find its leftmost and rightmost nodes.Examples:Input : N = 5, preorder[]={ 3, 2, 1, 5, 4 }Ou...
read more
Tree
Searching
DSA
Preorder Traversal
Binary Search Trees
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !