Intervals - Data Stream as Disjoint Intervals
You are processing a continuous stream of integers and need to dynamically maintain a collection of non-overlapping intervals that cover all inserted values. Which data structure is most suitable for efficiently supporting this task?
