Fundamentals
/
Median of Data Stream
⏸
00:00
↻
← Prev
Next →
▶
Question
Implement a MedianFinder class with addNum(num) and findMedian() returning the median of all numbers added so far. findMedian must run in O(1) using two heaps.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
10