排序算法---快速排序c++实现

#include<iostream> using namespace std; void quicksort(int *list, int s, int t) { if(s < t) { int i = s, j = t; int pivot = list[i]; //枢轴元素 while(i < j) { //从右左扫描 while(i < j && list[j
相关文章
相关标签/搜索