duplicate-zeros-boundary-zero-special-case

Status: IN

When the last surviving element is a zero that lands exactly at position n, it receives only one copy to avoid array overrun — this edge case is handled before the main copy loop.

Source: entries/2026/06/06/duplicate-zeros-solution.md

JSON