mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-07-05 12:04:48 -04:00
Update quick_sort.py
This commit is contained in:
parent
ee9384b374
commit
1ac9dbd6d5
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue