days-together-inclusive-endpoints

Status: IN

The `+ 1` in the overlap formula `max(0, min(a1, b1) - max(a0, b0) + 1)` means both arrival and departure days count as days spent together — this is a closed-interval convention.

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

JSON