Tutorials
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
Misc
7.8K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Searching
1.0K+ articles
Tree
909+ articles
DSA
/
Data Structures
/
Binary Search Tree
Binary Search Tree
166+ posts
Recent Articles
Popular Articles
Inorder predecessor in Binary Search Tree
Last Updated: 23 July 2025
Given a Binary Search Tree, the task is to find the In-Order predecessor of a given target key.In a Binary Search Tree (BST), the Inorder predecessor of a node is the prev...
read more
Binary Search Tree
DSA
Restoring BST Structure from Leaf Removal Sequences
Last Updated: 23 July 2025
Given a sequence of strings representing the leaf nodes removed from a Binary Search Tree (BST) in multiple iterations, reconstruct the original BST and print its pre-orde...
read more
Binary Search Tree
DSA
Traversal
Tree Sort in Python
Last Updated: 23 July 2025
Tree sort is a sorting algorithm that builds a Binary Search Tree (BST) from the elements of the array to be sorted and then performs an in-order traversal of the BST to g...
read more
Tree
Binary Search Tree
Picked
DSA
Python-DSA
Find the Closest Binary Search Tree Value II
Last Updated: 30 May 2024
Given the root node of a binary search tree (BST) and a target value. The task is to find the k values in the BST that are closest to the target value. The answer can be r...
read more
Binary Search Tree
Picked
DSA
Linkedin
Sum of Descendant Nodes Below Target in Binary Search Tree
Last Updated: 23 July 2025
Given a Binary Search Tree with unique node values and a target value. You have to find the node whose data is equal to the target and return the sum of all descendant (of...
read more
Binary Search Tree
Geeks Premier League
DSA
BST
Geeks Premier League 2023
Implement Binary Search Tree(BST) Iterator
Last Updated: 23 July 2025
Binary Search Trees (BSTs) are data structures, in computer science. They are commonly used for searching, insertion and deletion operations. In situations it becomes nece...
read more
Binary Search Tree
Picked
Geeks Premier League
DSA
Inorder Traversal
Geeks Premier League 2023
Detect a valid probe sequence in a binary search tree
Last Updated: 28 April 2025
Given one integer X and a possible probe sequence of N integers, the task is to detect if the given sequence of integers can be visited in the exact same order while searc...
read more
Binary Search Tree
Geeks Premier League
DSA
Geeks Premier League 2023
Binary Search Tree vs Ternary Search Tree
Last Updated: 23 July 2025
For effective searching, insertion, and deletion of items, two types of search trees are used: the binary search tree (BST) and the ternary search tree (TST). Although the...
read more
Tree
Binary Search Tree
Picked
DSA
Find the minimum Sub-tree with target sum in a Binary search tree
Last Updated: 23 July 2025
Given a binary tree and a target, find the number of nodes in the minimum sub-tree with the given sum equal to the target which is also a binary search tree.Examples:Input...
read more
Dynamic Programming
Binary Search Tree
DSA
Binary Tree
Algorithms-Dynamic Programming
Find maximum product of K integers in a Binary Search Tree
Last Updated: 23 July 2025
Given a Binary search tree(BST) and a positive integer K, find the maximum product of k integers in the tree. Return the product as an integer.Examples:Input: K = 3, ...
read more
Binary Search Tree
DSA
BST
Data Structures-Binary Search Trees
Find two nodes in the BST whose product equals to the target value
Last Updated: 23 July 2025
Given a binary search tree (BST) and a target value, find two nodes in the BST such that their product equals the given target value. Return an empty array if no such pair...
read more
Binary Search Tree
DSA
BST
Count distinct element in a BST
Last Updated: 23 July 2025
Given a binary search tree (BST), the task is to count the number of distinct elements present in it.Examples:Input: 5 / \ 3 7/ \ / \2 4 6 8Output : 7Explanati...
read more
Tree
Binary Search Tree
DSA
BST
Find next smaller element in Binary Search Tree
Last Updated: 23 July 2025
Given a binary search tree and a target value, the task is to find the next smaller element of the target value in the binary search tree.Examples :Input: 8 / \ 3 ...
read more
Tree
Binary Search Tree
DSA
BST
Find Next greater element in Binary Search Tree
Last Updated: 28 August 2023
Given a binary search tree and a target value, the task is to find the next greater element of the target value in the binary search tree.Examples:Input: 5 / \...
read more
Tree
Binary Search Tree
DSA
BST
Find Mode in Binary Search tree
Last Updated: 22 March 2023
Given a Binary Search Tree, find the mode of the tree.Note: Mode is the value of the node which has the highest frequency in the binary search tree.Examples:Input: ...
read more
Hash
Binary Search Tree
DSA
Trees
1
2
3
4
...
12
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 !