I am trying to solve a problem to efficiently merge 2 unsorted Linked Lists into one sorted Linked List. I have some ideas.
- Simply merge the 2 linked lists and than sort (mergesort or quicksort)
- Sort both individually and merge the two follow this concept.
How to merge two sorted arrays into a sorted array?
Those are about all the algorithms I can think of. Does anyone else have any better and more efficient ways to solve this problem?