check-double-insert-after-lookup

Status: IN

`checkIfExist` inserts each element into `seen` only after checking for its double/half, which prevents self-matching at the same index

Source: entries/2026/06/06/check-if-n-and-its-double-exist-solution.md

JSON