Tutorials
Courses
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
37.4K+ articles
Misc
8.7K+ articles
Mathematical
7.7K+ articles
Arrays
6.4K+ articles
Strings
3.2K+ articles
Competitive Programming
3.2K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Sorting
1.8K+ articles
Searching
1.7K+ articles
DSA
/
Data Structures
/
Binary Search Tree
Binary Search Tree
289+ posts
Recent Articles
Popular Articles
Find two nodes in the BST whose product equals to the target value
Last Updated: 09 January 2024
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
Find maximum product of K integers in a Binary Search Tree
Last Updated: 14 October 2023
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 the minimum Sub-tree with target sum in a Binary search tree
Last Updated: 09 November 2023
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
Binary Search Tree vs Ternary Search Tree
Last Updated: 30 May 2023
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
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
Implement Binary Search Tree(BST) Iterator
Last Updated: 15 November 2023
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
C Program for Binary Search Tree
Last Updated: 29 May 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
Binary Search Tree
C Language
DSA
Binary Search Trees
Sum of Descendant Nodes Below Target in Binary Search Tree
Last Updated: 09 January 2024
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
Binary Search Tree
Last Updated: 21 June 2025
A Binary Search Tree (BST) is a type of binary tree data structure in which each node contains a unique key and satisfies a specific ordering property:All nodes in the lef...
read more
Binary Search Tree
Data Structures
DSA
Top 50 Binary Search Tree Coding Problems for Interviews
Last Updated: 13 March 2024
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
Algorithms
Binary Search Tree
DSA
interview-preparation
Binary Search Trees
GFG Sheets
DSA Sheet
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
Tree Sort in Python
Last Updated: 31 May 2024
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
Restoring BST Structure from Leaf Removal Sequences
Last Updated: 10 June 2024
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
Optimized Recursive Delete in BST
Last Updated: 29 July 2024
We have discussed recursive implementation of BST delete. In this post, we are going to discuss an optimization over the previous implementation. The optimization is main...
read more
Tree
Binary Search Tree
Data Structures
DSA
Inorder predecessor in Binary Search Tree
Last Updated: 14 February 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
1
2
3
4
...
20
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 !