【算法导论】【分治】【递归】快速排序
根据算法导论中给出的思想用分治递归进行实现的快速排序
#include
#include
#include<stdlib.h>
#include<time.h>
#include
using namespace std;
#define random(x)(rand()%x)
int aa[10] = { 1,3,4,5,7,9,2,6,0,8 };
int quitsort(int begin1, int end1)//就地调正
{
if (begin1 < end1)
原创
2022-01-12 16:02:38 ·
201 阅读 ·
0 评论