head, sorted in non-decreasing order. If a value occurs more than once, delete **all** nodes holding it, without keeping a single copy.
Return the head of the resulting list; it stays sorted. The list may be empty.head=list_node([-3, 0, 0, 2, 7, 7, 7, 9]) → [-3, 2, 9]
The values 0 and 7 repeat, so all their nodes are removed. What remains is -3 → 2 → 9.
head=list_node([4, 4]) → None
The only value repeats, so the list becomes empty.
head=list_node([1, 5, 6]) → [1, 5, 6]
head=list_node([-3, 0, 0, 2, 7, 7, 7, 9])
[-3, 2, 9]
Run checks the first 3 tests in your browser. Submit checks all 108 tests on the server, hidden ones included.