interval-overlap-formula

Status: IN

The `max(0, min(end1, end2) - max(start1, start2) + 1)` idiom for closed-interval overlap length appears in `days_together` and is a cross-cutting pattern used across multiple solutions in the repo.

Source: entries/2026/06/06/count-days-spent-together-solution.md

JSON