Easy10 pts
Sales by Match
n socks, colors in array. Pairs of same color. How many pairs?
Input
n, then n integers (colors).
Output
Number of pairs.
Sample
9 10 20 20 10 10 30 50 10 20
Expected
3
Loading editor…
Output
No output yet. Run your code to see results.