Guided lesson

Trees

Trees

Trees

Core

Mental model

  • Root is the top node.

Operations

traverse

Cost shape

Traversal O(n), balanced search O(log n)

Watch out

Confusing height with node count.

Related algorithms

Tree TraversalsBST Search
Guided progression
10% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart