pairs-iff-even-counts

Status: IN

An array can be divided into equal pairs if and only if every distinct element has an even frequency — the divide-array-into-equal-pairs solution checks `count % 2 == 0` for all Counter values.

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

JSON