Using Heaps for Prefix Median Calculation in TypeScript | CodeSignal Learn