Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is there a way we can know beforehand which nodes to delete?
Count the number of appearances for each number.
Solve with full IDE support and test cases