Deep Dive
Heap: Push & Pop
Heap basics · Heaps · 39 of 78
1/12
Min-heap
In this lessonStep 1 of 12 · ← → keys
The question
Keep the smallest item on top with O(log n) push and pop.
Heap basics · Heaps · 39 of 78
Min-heap
Keep the smallest item on top with O(log n) push and pop.