You can try the smaller 7B version.
45 karma · joined January 17, 2018
> Do a quick sort in python
> Here's an example of a quicksort implementation in Python:
def quicksort(array): if len(array) <= 1: return array pivot = array[0] less = [x for x in array[1:] if x <= pivot] greater = [x for x in array[1:] if x > pivot] return quicksort(less) + [pivot] + quicksort(greater)