Sponsored
Use these hints if you're stuck. Try solving on your own first.
Add all elements of <code>nums</code> into a Set.
Scan the list to check if the current element should be deleted by checking the Set.
Solve with full IDE support and test cases