摘要: def sort(a): for i in range(1,len(a)): temp = a[i] j = i while j>0 and a[j-1]>=temp: a[j] = a[j-1] j =j-1 a[j]=temp 阅读全文
posted @ 2017-06-18 16:49 淡季的风 阅读(73) 评论(0) 推荐(0)
摘要: 局部排序 阅读全文
posted @ 2017-06-18 15:34 淡季的风 阅读(104) 评论(0) 推荐(0)