Two Heaps Game — Running Median & Heap Balancing Challenge
Route stream numbers into Lower Max-Heap vs. Upper Min-Heap and rebalance to read O(1) running medians.
Time Complexity: O(log n)
Study the algorithm · Watch Visualizer · All Algorithm Games