Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
For any number x in the range [1, 500], count the number of elements in nums whose values are equal to x.
The elements with equal value can be divided completely into pairs if and only if their count is even.