2 ms·
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 initial
by gridspy 12y 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)