mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 10:56:29 +08:00
Update quick_sort.py
This commit is contained in:
parent
4be25e5273
commit
0585f20970
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ class QuickSortMedian():
|
|||
|
||||
""" 快速排序类(尾递归优化) """
|
||||
class QuickSortTailCall():
|
||||
|
||||
""" 哨兵划分 """
|
||||
def partition(self, nums, left, right):
|
||||
# 以 nums[left] 作为基准数
|
||||
|
|
Loading…
Reference in a new issue