1.partition算法 class Solution { public: int findKth(vector<int> a, int n, int K) { // write code here K = K-1; int p = -1; int start=0,end = a.size()-1; while(true) { p = partition(a,start,end); if(p==K) { return a[K]; } if (p<K){ start = p+1; } else { end = p-1; } } } int partition(vector&l...