It is a binary tree where each node has a key and an associated value which satisfies the following restriction :
In-order Property: The idea of a binary search tree is to store data according to an order, so that it can be retrieved very efficiently. An in-order traversal of the binary tree results in a sorted sequence.
| # | Title | Solution | Difficulty | Companies |
|---|---|---|---|---|
1. | BST Structure and Properties | |||
2. | BST Operations : Search, Insert, Delete, Min/ Max, Sorting, Building BST | |||
3. | Example 1 : Largest number in BST which is less than or equal to K | EASY | Amazon | |
4. | Example 2 : Pair with given sum in a BST | MEDIUM | Amazon | |
5. | Example 3 : In-order successor of a node in BST | MEDIUM | Facebook Microsoft Amazon | |
6. | Example 4 : Check given binary tree is BST or not | MEDIUM | Google Microsoft Amazon Adobe | |
7. | Example 5 : Remove BST keys outside a given range | MEDIUM | Amazon | |
8. | Applications of BST |