set-early-return-first-duplicate

Status: IN

The first-letter-to-appear-twice solution returns on the first duplicate encountered during left-to-right iteration, guaranteeing the result is the letter whose second occurrence index is minimal.

Source: entries/2026/06/06/first-letter-to-appear-twice-solution.md

JSON