seen-set-insert-after-check

Status: IN

In `count_arithmetic_triplets`, each element is added to `seen` after the triplet membership check, maintaining the invariant that only previously-visited elements are lookup candidates

Source: entries/2026/06/06/number-of-arithmetic-triplets-solution.md

JSON