Senior problem-solving round assessing algorithmic thinking under time pressure.
Design a data structure that supports inserting integers from an endless stream and returning the median in O(log n) per insertion and O(
Two heaps approach; keep sizes balanced; median at roots.