Given the head of a sorted linked list, delete duplicates so each value appears once, and return the (still sorted) list.
Input: one line of space-separated integers (sorted). Output: the deduplicated list's values.
1 1 2
1 2
1 1 2 3 3
1 2 3
Run your code against the sample tests, or Submit to run the full suite.