mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update quick_sort.py
This commit is contained in:
parent
ee9384b374
commit
1ac9dbd6d5
@ -19,5 +19,6 @@ def quick_sort_divided(array):
|
|||||||
return array
|
return array
|
||||||
|
|
||||||
lower, pivot, higher = quick_sort_partition(array)
|
lower, pivot, higher = quick_sort_partition(array)
|
||||||
|
|
||||||
return quick_sort_divided(lower) + [pivot] + quick_sort_divided(higher)
|
return quick_sort_divided(lower) + [pivot] + quick_sort_divided(higher)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user