Guided lesson

Heap Push and Pop

Trees

See the input

Intermediate

Input for Heap Push and Pop: Maintain the heap property by bubbling values up or down.

8
3
10
1
6
14
Step 1 O(log n) time - O(1) 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