We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be763dd commit 20a1b0fCopy full SHA for 20a1b0f
src/main/java/com/fishercoder/solutions/_703.java
@@ -31,6 +31,7 @@ public static class Solution1 {
31
public static class KthLargest {
32
PriorityQueue<Integer> heap;
33
int K;
34
+
35
public KthLargest(int k, int[] nums) {
36
heap = new PriorityQueue<>(Collections.reverseOrder());
37
for (int num : nums) {
0 commit comments