Binary Search Tree (BST)

A Binary Search Tree is a data structure that stores elements in a way that allows fast lookup, addition, and removal. Each node has up to two children, and for any given node, the left child’s value is smaller, and the right child’s value is larger.

Key Operations

Example Diagram

Learn more about BSTs on Wikipedia.