Status: IN
`maxAliveYear` uses the difference-array (sweep-line) pattern: record +1 at birth and -1 at death, then prefix-sum to reconstruct population, achieving O(n + R) instead of O(n * R).
Source: entries/2026/06/06/maximum-population-year-solution.md