Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep track of the min and max frequencies.
The number to be eliminated must have a frequency of 1, same as the others or the same +1.
Solve with full IDE support and test cases