C# sharp demystified

In this article, I had tried to solve some common linked list problems using C#. We often are used to solve linked list problems using pointers in C,C++ ,however, in C# all the implementation is done without using pointers.Some of the problems which I had tried to solve in this article is :

  • Stack implementation using linked list
  • Find a Node
  • Remove a node
  • Reverse a linked list
  • Remove duplicates from a sorted linked list
  • Remove duplicates from a unsorted linked list
  • Merging 2 sorted linked lists into one
  • Merging alternate nodes of 2 linked lists into one
  • Finding nth element from last in a linked list
I would keep on adding other problems as I keep them encountering.For more problems on linked lists see http://csharp-algos.blogspot.com/



Next Recommended Reading Binary Search using C#