Update quick_sort.py

This commit is contained in:
marina 2023-08-07 20:38:09 -07:00 committed by GitHub
parent ee9384b374
commit 1ac9dbd6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,5 +19,6 @@ def quick_sort_divided(array):
return array
lower, pivot, higher = quick_sort_partition(array)
return quick_sort_divided(lower) + [pivot] + quick_sort_divided(higher)