Comments (2)
Hello @KLSMDN is anyone assigned for this issue? It would be glad if I could be assigned to it and make my contribution. Thanks
from cs-notes.
class Solution {
public int findKthLargest(int[] nums, int k) {
PriorityQueue pq = new PriorityQueue<>(Collections.reverseOrder());
for(int i:nums){
pq.add(i);
}
int q=1;
while(q!=k){
pq.poll();
q++;
}
return pq.poll();
}
}
from cs-notes.
Related Issues (20)
- Some troubles when trying mlpack
- 看完了之后,能去面试 后台开发了吗? HOT 15
- 在leetcode题解/栈与队列一文中 对于4.用栈实现括号匹配的相关错误:
- 剑指 Offer 题解 - 位运算:56. 数组中只出现一次的数字 解题思路描述有误
- 计算机网络-链路层图挂了 HOT 6
- Leetcode题解/双指针2 代码有误 HOT 1
- no se vale
- 基础知识
- 我也在打造这方面的知识库:www.yuque.com/it-coach 能一起合作吗
- Kaschey758
- Suggestion HOT 1
- Kaschey758
- 89840200099962655961 HOT 1
- 0888999999*89840200011162655961# HOT 2
- 学习
- leetcode最新pdf还有吗 HOT 10
- 0888999999#89840200011162655961
- 计算机网络 - 应用层.md -- 2. ARP 解析 MAC 地址
- 计算机操作系统 - 进程管理 进程调度算法部分,“先来先服务 first-come first-serverd”,serverd拼写错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs-notes.