Data Stream as Disjoint Intervals
Data Stream as Disjoint Intervals tracks non-negative integers as they arrive. Add values to the stream and return sorted, disjoint ranges that merge consecutive numbers and ignore duplicates.
We'll cover the following...
We'll cover the following...
Statement
You are given a stream of non-negative integers