Two Heaps & K-Way Merge
Two heaps that lean on each other, and one that merges k sorted streams.
Start the module
1. Two Heaps: Running Median · 6 min
0 of 4 lessons · 0% complete
Two Heaps & K-Way Merge visualizer
Every lesson in this module opens with an animation you can step through. This is the first one — Two Heaps: Running Median: Two heaps face each other, and the middle sits between their roots.
Two Heaps: Running Median
Step 1 of 16
seen0median…
Two heaps, back to back. The low half keeps its largest on top; the high half keeps its smallest. The middle lives between them.
- Lessons
- 4
- Minutes
- 25
- Problems
- 14
- Concepts
- 4
Quiz yourself: 3 questions from this module
1 / 3