Guided lesson

Tree Height

Trees

See the input

Beginner

Input for Tree Height: Height is one plus the maximum height of the left and right subtrees.

8
3
10
1
6
14
Step 1 O(n) time - O(h) space
Guided progression
6% 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