A hacker on a roll may be able to produce–in a period of a few months–something that a small development group (say, 7-8 people) would have a hard time getting together over a year. IBM used to report that certain programmers might be as much as 100 times as productive as other workers, or more. Peter Seebach

Remove duplicates

Language Java | Level Intermediate | Category Data structure | September 5, 2015 10:42 pm


Data structure Description

Write a program to remove the duplicate node in the singly linked list. Singly linked list node store the next node link and data. The utility function takes linked list head, iterate all the nodes and remove the duplicate node in the linked list.


Output

   					 

Print the list of items: 21->52->33->21->67->NULL
Print the list of items after remove duplicate: 21->52->33->67->NULL

				    

Comments


No comments available!

Please login to add comments.