You are viewing a single comment's thread. Return to all comments →
def quickSort(arr): p = arr[0] left, equal, right = list(), [p], list() for a in arr[1:]: if a < p: left.append(a) if a > p: right.append(a) return left + equal + right
Seems like cookies are disabled on this browser, please enable them to open this website
Quicksort 1 - Partition
You are viewing a single comment's thread. Return to all comments →