Binary Search Trees

What is a Binary Search Tree?

A Binary Search Tree (BST) is a type of binary tree in which each node has at most two children, and every node left child contains a value less than the node's value, while the right child contains a value greater than the node value.

Key Properties of Binary Search Trees:

A Visual Example of a Valid BST:

Binary Search Tree Diagram

For extra details on Binary Search Trees, please visit Wikipedia's page on Binary Search Trees.