Update quick_sort.py

This commit is contained in:
timi 2022-11-26 01:02:08 +08:00 committed by GitHub
parent 4be25e5273
commit 0585f20970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,7 @@ class QuickSortMedian():
""" 快速排序类(尾递归优化) """ """ 快速排序类(尾递归优化) """
class QuickSortTailCall(): class QuickSortTailCall():
""" 哨兵划分 """ """ 哨兵划分 """
def partition(self, nums, left, right): def partition(self, nums, left, right):
# 以 nums[left] 作为基准数 # 以 nums[left] 作为基准数