Код: Выделить всё
def partion(arr,low,high):
partion_index=low
pivot=arr[partion_index]
while (low < high):
while low < len(arr) and (arr[low]=pivot):
high-=1
if (low < high):
arr[low],arr[high]=arr[high],arr[low]
pivot,arr[high]=arr[high],pivot
return high
Код: Выделить всё
def quickSort(arr,low,high):
if(low
Подробнее здесь: [url]https://stackoverflow.com/questions/78795311/why-is-swapping-using-function-and-swapping-using-assignment-produce-in-differen[/url]