Easy
Quiz
#83 Remove Duplicates from Sorted List
APPROACH
Remove extra duplicate nodes from sorted linked list head so every value appears exactly once. Return the head of the deduplicated list.
Example 1:
Input: head = [1,1,2]
Output: [1,2]
Example 2:
Input: head = [1,1,2,3,3]
Output: [1,2,3]
1 of 4
1:00
What is the optimal approach for this problem?