← Visuals

One barcode, folded at the answer

The Advent of Code 2026 day 4 part two barcode: 20000 characters, 6695 of them readable. Each candidate instruction length sweeps it from the start until two readable colours land in the same slot, and the counter climbs to 1642, the first length that sweeps the whole thing without a clash. Then the barcode folds at that length, one column per instruction, so every readable cell in a column agrees. Restart sends it back to candidate one.