Design a data structure that supports:
addNum(int x)
findMedian()
Median definition:
O(log n)
O(1)
Sign in to leave a comment