Index

Module 01 · DSAThe toolbox

Trees (BST, balancing, heaps, tries)

Trees
Trees · Open board

Six numbers arranged as a chart: one at the top, two below it, three below those, and nothing loops back. The ordered counterpart to Hashing‘s buckets, and the shape behind the B-trees in Storage Engines.

Before you start. You already have the hash table from Hashing: instant lookup, no memory of order. This lesson is the opposite trade - a shape that remembers order, at the cost of one extra comparison per step.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Review DSA →

Saved in this browser, and to your account when you sign in.