30:00
Given a data stream input of non-negative integers, summarize the numbers seen so far as a list of disjoint intervals.
0≤value≤104
At most 3×104 calls in total will be made to addNum and getIntervals.
At most 102 calls will be made to getIntervals.
Initialize SummaryRanges
0
1
2
3
4
5
6
7
8
9
10
No intervals yet