3 ms·
I need 4 lines to do the mergesort correction. What's the way that is expected here? I would do, if i = len(left): result.append(right[j]) if
by morenoh149 15y ago
I need 4 lines to do the mergesort correction. What's the way that is expected here? I would do,
if i = len(left):
result.append(right[j])
if j = len(right):
result.append(left[i])
- morenoh149 15y agonevermind, sneaked a peek at the original code http://en.literateprograms.org/Merge_sort_(Python) http://en.literateprograms.org/Merge_sort_(Python)