counter-all-pattern

Status: IN

divide-array-into-equal-pairs uses `Counter` + `all()` with a generator expression — `all()` short-circuits on the first odd count, giving O(n) time and O(k) space.

Source: entries/2026/06/06/divide-array-into-equal-pairs-solution.md

JSON