Problems / Heap / Priority Queue / Find Median from Data Stream
#70 Hard Time O(log n) Space O(n) Animated

Find Median from Data Stream

Design a data structure to find the median from a data stream.

LeetCode ↗
Approach: Two Heaps (Min and Max)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps