ReviseAlgo Logo
MediumHigh Frequency30 min

Binary Search Tree

BST properties, insertion, deletion, validation, and in-order traversal patterns.

BST property: left < root < right. In-order traversal gives sorted output. Lookup/insert/delete are O(log n) balanced, O(n) worst case.

Binary Search Tree

Search the BST

BST Search Walkthrough1 / 4
Try target
831016144713

7 < 8

7 is smaller than 8, so move to the left subtree.