Program to Sort a Linked List

This program is to sort a Singly Linked List. Time complexity is O(n2) to sort a linked list.

Program to Sort a Linked List


Remove duplicates from an unsorted linked list without using temporary buffer

Write Code to remove duplicates from an unsorted linked list. How would you solve this problem if a temporary buffer is not allowed?

Following program is to remove all duplicate nodes from the linked list, strickly without using any extra data structure or temporary buffer. Language used C#.