Loading...
Loading...
Loading...
A sorted linked list of marks may repeat values. Delete duplicate nodes so each value appears once, and print the list.
Example
Input
1 1 2 3 3 3
Output
1 2 3
Try the problem first. Open one hint at a time.
Compare each node with the next one.
If they are equal, skip the next node and stay on the same node.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor