Status: IN
The closed-form sum `n*(n+1)//2` is a recurring idiom across this repo for problems involving missing or duplicate numbers in a 1-to-n range, avoiding a second pass to compute the expected sum.
Source: entries/2026/06/06/set-mismatch-solution.md
JSON