Remove Duplicates from Sorted List II
Medium · Linked Lists · about 20 minutes
Asked at Bloomberg, Amazon, Meta, Google, Microsoft.
The list is sorted. Throw away every value that occurs more than once, all copies of it, so that only the values that occur exactly once remain. Return the (still sorted) result.