Efficient Median Calculation for Array Prefixes Using Heaps | CodeSignal Learn