摘要: 快速排序是一种不稳定的排序方法,此外 堆排序、希尔排序也是不稳定的排序方法 代码如下: #include <stdio.h> // 分区函数,将数组分为两部分,左边小于基准值,右边大于基准值int partition(int* parr, int low, int high) { // 选择第一个元 阅读全文
posted @ 2025-02-05 19:54 freeyang8 阅读(57) 评论(0) 推荐(0)