Example 1
- Input
- ["MedianFinder","addNum","addNum","findMedian","addNum","findMedian"] [[],[1],[2],[],[3],[]]
- Output
- [null,null,null,1.5,null,2.0]
After 1 and 2 the ordered stream is [1, 2] with median 1.5; after adding 3 the stream is [1, 2, 3] with median 2.0.