Sorting-Algorithms
Sorting-Algorithms copied to clipboard
Timsort.py gets IndexError on larger arrays
Also left and right seem to be swapped, result works just nomenclature.
len1, len2 = m - l + 1, r - m if l + len1 > len(arr): len1 = len(arr) - l