352. Data Stream as Disjoint Intervals
Given a data stream input of non-negative integers a 1 , a 2 , . . . , a n a_1, a_2, ..., a_n a1,a2,...,an, summarize the numbers seen so far as a list of disjoint intervals.
Implement the SummaryRanges class…