Problem 2341 · Easy

Maximum Number of Pairs in Array

Values wait for a partner: each match forms one pair, and whatever is still waiting at the end is the leftover.

Open the interactive visualisation