Data Structures & Algorithms
Intervals
Pattern-first mastery of interval problems — the six relationships, the universal overlap formula, and 22 FAANG patterns from Merge Intervals to the Skyline Problem.
- Theory Intervals — Fundamentals Core mental models, sorting tricks, and overlap detection logic behind every interval problem.
- Pattern 01 Merge & Insert
- Pattern 02 Conflict Detection
- Pattern 03 Greedy Selection
- Pattern 04 Interval Arithmetic
- Pattern 05 Calendar Design
- Pattern 06 Data Stream Intervals
- Pattern 07 Sweep Line
- Pattern 08 Skyline & 2D Sweep
- Pattern 09 Interval Tree
- Pattern 10 Scheduling with Heap