How to sort a linked list. How to find three sorted numbers in an array.
Anonymous
You can use TreeSort to sort Linked List. Just construct Balanced BST(like AVL) and do in order traversal. using O(1) space if you modify the linked list to AVL and O(nlogn) since building AVL will take always that amount of time :).
Check out your Company Bowl for anonymous work chats.