[arr[pivotIndex], arr[end]] = [arr[end], arr[pivotIndex]]
This line of code is part of the quickSort function. I understand the standard swap function but not this. Can someone explain to me how does this works? Thank you!
[arr[pivotIndex], arr[end]] = [arr[end], arr[pivotIndex]]
This line of code is part of the quickSort function. I understand the standard swap function but not this. Can someone explain to me how does this works? Thank you!