Write a program to remove all duplicate elements in linked list using c | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write a program to remove all duplicate elements in linked list using c

suppose linked list 1st and 3rd node both contain 3 then both should be removed.

20th Oct 2018, 4:58 PM
Dipu Ojha
Dipu Ojha - avatar
4 Answers
+ 2
Cool. I'd love to see it working. Please post it here when done. We don't normally write your programs. Instead, we fix your broken one. I'm willing to give hints on algorithm, if that helps.
20th Oct 2018, 7:31 PM
John Wells
John Wells - avatar
+ 5
7th Dec 2018, 5:03 PM
Himani
+ 1
This gives a good starting point of a link list. They don't give an add function, but show it's code twice, https://www.geeksforgeeks.org/linked-list-set-1-introduction/
21st Oct 2018, 12:25 PM
John Wells
John Wells - avatar
0
please Mr Wells algo will help too
21st Oct 2018, 10:46 AM
Dipu Ojha
Dipu Ojha - avatar