Sponsored
Use these hints if you're stuck. Try solving on your own first.
It’s impossible if the same number occurs more than twice. So just check the frequency of each value.
Solve with full IDE support and test cases