30:00
The median is the middle value in an ordered integer list. Implement the MedianFinder class.
−105≤num≤105-10^5 \leq \text{num} \leq 10^5−105≤num≤105
There will be at least one element in the data structure before calling findMedian.
findMedian
At most 5×1045 \times 10^45×104 calls in total to addNum and findMedian.
addNum
addNum(1)
Empty
Adding: 1