Mental Model
Intervals represent ranges of values that often overlap or need merging, making them a common pattern in many problems.
Analogy: Think of booking meeting rooms where each meeting has a start and end time; managing these times without conflicts is like handling intervals.
Time line: 0 1 2 3 4 5 6 7 8 |----|----|----|----|----|----|----|----| Interval A: [----] Interval B: [-------] Interval C: [--]
