Interview-code-practice-python icon indicating copy to clipboard operation
Interview-code-practice-python copied to clipboard

快速排序小错误

Open xcc2731594 opened this issue 3 years ago • 0 comments

# 快速排序

# 时间复杂度 O(nlogn) 空间复杂度 O(logn)-O(n)

x = [int(i) for i in input().split(',')]

def kpsort(x, first, last):

font = first

end = last

middle = x[first]

应改为 middle = x[last]

xcc2731594 avatar Nov 29 '21 04:11 xcc2731594