Blind 75 Heap Questions

1 problem · Free practice

Find Median From Data Stream uses two heaps to keep the lower and upper halves of the values separate. The solution depends on two invariants: every value in the lower half is at most every value in the upper half, and their sizes differ by at most one. Maintaining those rules makes the median available at the roots.

Practice heaps

What to focus on

All 75 questions and your progress checklist