Removing Duplicates from a List
Procedure to remove duplicate nodes from a linked list.
Procedure :
Traverse the list until the next node is not NULL.
If the data of current node and next node is the same, change the next of current node to next of next node and delete the next node.
Else, move the current node to next of current node.
Contributed by Nitin Ranganath
Last updated