k-length-apart-gap-is-exclusive

Status: IN

The gap expression `i - last - 1` in `kLengthApart` counts elements strictly between two 1-positions, not including the endpoints — so 1s at indices 2 and 5 yield a gap of 2.

Source: entries/2026/06/06/check-if-all-1s-are-at-least-length-k-places-away-solution.md

JSON