(1)没有满足题意,使用优先队列求解 class Solution { public: int findKth(vector<int> a, int n, int K) { // write code here priority_queue<int, vector<int>, greater<int>> pq; for(int i=0; i<K; i++){ pq.push(a[i]); } for(int i=K; i<n; i++){ if(pq.top() < a[i]){ pq.pop(); pq.push(a[i]);...