August 2020
Intermediate to advanced
508 pages
11h 53m
English
There are many different kinds of tree-based data structures, 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 ...
Read now
Unlock full access