Remove Duplicates From Sorted Linkedlist

easy
1. Given a singly sorted linklist. remove any duplicates nodes from the list.
2. There are some duplicate nodes in a linked list & function is required to remove them.

Input Format

8->8->14->14->15->16->17->null

Output Format

15->16->17->null

Constraints

0 <= N <= 10^6

Example

Input

        
Output

        
Previous
Tetris
Next
Addition Of Two Linkedlist

Related Questions