Mental Model
Intervals represent ranges of values that often overlap or need merging, making them a common pattern in problems involving scheduling or grouping.
Analogy: Imagine booking meeting rooms where each meeting has a start and end time; managing these bookings is like handling intervals to avoid clashes.
Intervals on a line: [1---5] [6---8] [4---7] Start and end points show where each interval begins and ends.
