educative.io

What does rebalancing both heaps mean?

in the example illustration for : find the median of all windows of length k in the array - in slide 4 - what does rebalancing both heaps mean? How is it done?


Course: Grokking Coding Interview Patterns in Python - AI-Powered Learning for Developers
Lesson: Two Heaps: Introduction - Grokking Coding Interview Patterns in Python