數組中的第K個最大元素

int findKthLargest(vector<int>& nums, int k) { multiset<int> s; for(const auto& e : nums){ s.insert(e); } auto it = s.end(); while(k--){
相關文章
相關標籤/搜索