Remove All Duplicates From Sorted Linkedlist
1. You are give a single sorted linkedlist of numbers.Input Format
2. remove all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Return the remaning linked list.
1->1->1->4->5->6->6->7->8->9->9->9->nullOutput Format
4->5->7->8->nullQuestion Video
0 <= N <= 10^6Sample Input
12Sample Output
1 1 1 4 5 6 6 7 8 9 9 9
4 5 7 8
-
Asked in Companies
-
Related Topics
Video Solution
Code Solution
{ }
{ }
Run