Anonymous user
Sorting algorithms/Quicksort: Difference between revisions
m
→{{header|Python}}: : un-pythonic to have "else:" after "if condition: … return", as superfluous.
Bwana Pete (talk | contribs) |
imported>MM m (→{{header|Python}}: : un-pythonic to have "else:" after "if condition: … return", as superfluous.) |
||
Line 8,016:
if len(arr) <= 1:
return arr
for i
elif i >
less = quickSort(less)
return less + pivotList
a = [4, 65, 2, -31, 0, 99, 83, 782, 1]
a = quickSort(a)
</syntaxhighlight>
In a Haskell fashion --
|