Now the same million numbers are in a singly linked list. Which sort fits, and how do you do it in O(n log n) with O(1) extra space?
Now the same million numbers are in a singly linked list. Which sort fits, and how do you do it in O(n log n) with O(1) extra space?
Opens with the full question.