Remove Duplicate From Sorted Linkedlist
easy
1. You are give a single sorted linkedlist of numbers. 2. remove all duplicate nodes such that duplicate numbers appear once and Return the remaning linked list.
Constraints
0 <= N <= 10^6
Format
Input
1->1->1->4->5->6->6->7->8->9->9->9->null
Output
1->4->5->6->7->8->9->null
Example
Sample Input
12
1 1 1 4 5 6 6 7 8 9 9 9
Sample Output
1 4 5 6 7 8 9