热门标签
更多>
搜索结果
查询Tags标签: proivt,共有 2条记录-
python快速排序
#快速排序 def quicksort(lists,i,j):while i>j:return listproivt=lists[i]low=ihigh=jwhile i<j:while i<j and lists[j]>=proivt:j-=1lists[i]=lists[j]while i<j and lists[i]<=proivt:i+=1lists[j]=lists[i]lists[j]=proivtquicksort(lists,low,i-…
2021/9/19 11:35:39 人评论 次浏览 -
python快速排序
#快速排序 def quicksort(lists,i,j):while i>j:return listproivt=lists[i]low=ihigh=jwhile i<j:while i<j and lists[j]>=proivt:j-=1lists[i]=lists[j]while i<j and lists[i]<=proivt:i+=1lists[j]=lists[i]lists[j]=proivtquicksort(lists,low,i-…
2021/9/19 11:35:39 人评论 次浏览