Sponsored
Solve with full IDE support and test cases
Use these hints if you're stuck. Try solving on your own first.
Compress the array <code>nums</code> and save all the occurrences of each element in the separate arrays.