快速排序浅解

#本教程主供本人自我复习所用,在此分享,希望别人也能有所收获。 首先来个python程序: python2.7: >>>def quickSort(L,low,high): i=low j=high if i>=j: return L key=L[i] while i<j: while i<j and L[j]>=key: j-=1 L[i]=L[j] while i<j and L[i]<=ke
相关文章
相关标签/搜索