第一次我用快排思想做的,不过是快排变形,测试完效率奇低;我太傻了,一看可以用大根堆做的 class Solution { public: int quick(vector<int> &vec,int low,int high){ if(low>=high) return low; int middle = (low+high)/2; middle = (vec[middle]>vec[low]?vec[middle]:vec[low])<vec[high]?(vec[middl...