83. Remove Duplicates from Sorted List
Description
Given a sorted linked list, delete all duplicates such that each element appear only once.
Constraints
Approach
Links
GeeksforGeeks
YouTube
Examples
Input: 1 -> 1 -> 2
Output: 1 -> 2
Input: 1 -> 1 -> 2 -> 3 -> 3
Output: 1 -> 2 -> 3
Solutions
Follow up
Last updated
Was this helpful?