using namespace std;templateint Partition(T a[],int low,int height){ T pivot=a[low];//这个要用T,…
```cpp// 这里要加入随机化取pivot,也就是基准的原因是/你上面取第一个是pivot,这个是你自己构造了一个数组,让这个数组的第一个数字,刚好是这个数组的中间的那个数字出题人…
居然现在才知道吗,有点失败了,果然还是新手阿
记录思路、实践与复盘。点击阅读全文。