Data Stream as Disjoint Intervals
Understand how to track and summarize a stream of non-negative integers as a list of disjoint intervals. Learn to implement a class that adds numbers, merges overlapping intervals, and returns sorted intervals while handling duplicates properly.
We'll cover the following...
We'll cover the following...
Statement
You are given a stream of non-negative integers