Status: IN
When counting unordered pairs within groups, solutions apply the combinatorial formula `n*(n-1)//2` per group rather than enumerating pairs, relying on the integer-division-is-exact invariant (one of n, n-1 is always even).
Source: entries/2026/06/06/count-pairs-of-similar-strings-solution.md