Sorting-Algorithms icon indicating copy to clipboard operation
Sorting-Algorithms copied to clipboard

Timsort.py gets IndexError on larger arrays

Open wkvolkman opened this issue 1 year ago • 0 comments

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

wkvolkman avatar Jan 23 '24 16:01 wkvolkman