Question DSA-HEAP-0035
EasyWhich structure is a standard way to keep the running median of a stream of numbers?
- A.
A hash set
- B.
Two heaps: a max-heap for the lower half and a min-heap for the upper half
- C.
Sign up free to see the answer and a step-by-step explanation.