Status: IN
`count_pairs_leftovers` avoids the O(n^2) pair-removal simulation described in the problem and instead uses O(n) frequency counting with `Counter` plus integer division.
Source: entries/2026/06/06/maximum-number-of-pairs-in-array-solution.md