Hacker News new | ask | show | jobs
by gridspy 4365 days ago
The merge stage of merge sort will only work if the input lists are already sorted. In this case they are unsorted.

I'd ignore the fact that there were initially 2 lists and just concatinate them and sort. I.e sort(unsorted1 + unsorted2)