快速排序淺解

#本教程主供本人自我複習所用,在此分享,希望別人也能有所收穫。 首先來個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
相關文章
相關標籤/搜索