Back
Stacks, Queues & Heaps
Question 1 of 9
11% Complete
Medium
Median of a data stream is maintained with...
A
One large max-heap
B
A stack
C
A deque
D
Two heaps (max-heap for lower half, min-heap for upper half)