August 2024
Intermediate to advanced
516 pages
11h 47m
English
Many different kinds of tree-based data structures exist, but in this chapter, we’ll focus on a particular tree known as a binary search tree.
Note that there are two adjectives here: binary and search.
A binary tree is a tree in which each node has zero, one, or two children.
A binary search tree is a binary tree that also abides by the following rules:
Here’s an example of a binary search tree, in which the values are numbers:
Note that each node has one child with a lesser value ...
Read now
Unlock full access