并排 2026-10-08 20:48 | 算法 | 153 38 字 | 4 分钟 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int q[N],temp[N],n;//声明两个数组,临时数组缓存合并结果,最终合并… 算法
快速排序 2026-10-08 16:53 | 算法 | 156 166 字 | 5 分钟 思想: 1.选定比较值(下为x) 2.分割重排 (标定大小) 3.递归排序 代码: #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int q[… 算法