Singly linkedlist | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Singly linkedlist

Suppose we have unsorted single linked list that have the last names of students , how to print all last names without repeatition ?

17th Mar 2018, 12:46 PM
moon walker
moon walker - avatar
1 Answer
+ 8
you can try maybe with two for loops, and look at every element if is not duplicate with others and print them
17th Mar 2018, 4:08 PM
Vukan
Vukan - avatar