Skip to content

Binary search trees

Handout

Binary search trees

  • A binary search tree (BST) stores values so they stay sorted and are fast to find.
  • Each node holds a value and links to up to two children: a left and a right.
  • The top node is the root. A node with no children is a leaf.

Handout

Log in or create account

IGCSE & A-Level