Mental Model
Intervals represent ranges that often overlap or need merging, making them a common pattern to solve problems about scheduling or grouping.
Analogy: Imagine booking meeting rooms where each meeting has a start and end time; you need to see which meetings clash or can fit together without overlap.
Time line:
|----|----|----|----|----|----|----|----|----|
Intervals:
[1---4]
[3---5]
[6---8]
