Challenge 8: Remove Duplicates from Linked List

In this lesson, you must figure out the C# solution for removing duplicates from a linked list.

Problem statement

Now, you will be implementing the RemoveDuplicates() function. When a linked list is passed to this function, it removes any node (which is a duplicate of another existing node).

You can see an example below:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.