摘要: 快速排序 —— 左右指针法的原理: (1)设最右值为枢轴值 (2)从左往右扫描,发现大于枢轴值的就进行位置互换 (3)从右往左扫描,发现小于枢轴值的就进行位置互换 #include <iostream> #include <stdlib.h> using namespace std; /****** 阅读全文
posted @ 2020-10-14 15:14 r1-12king 阅读(739) 评论(0) 推荐(0) 编辑