Week 3 · Day 20 of 42
Heap / Priority Queue: Two Heaps
Maintain a max-heap for the lower half and a min-heap for the upper half.
Checking access
Spotted a mistake on this page?
Wrong formula, broken animation or confusing wording. Tell us and we will fix it.