摘要: 实现稍微难点的三个算法:快排、归并、堆排序 快速排序 以下是一种写法(算法导论上是另一种写法,待补充) def quickSort(data, start, end): i = start j = end # i与j重合,一次排序结束 if i >= j: return # 设置最左边的数为基准值 阅读全文
posted @ 2020-11-14 17:17 baishengguan 阅读(65) 评论(0) 推荐(0) 编辑