Skip to content

Commit 2bc8451

Browse files
author
谢育欣
committed
done
1 parent 30bbb7f commit 2bc8451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* 输入: [3,2,3,1,2,4,5,5,6] 和 k = 4
1313
* 输出: 4
1414
*/
15-
public class Main215 {
15+
public class Main215_TopK {
1616
public int findKthLargest0(int[] nums, int k) {
1717
PriorityQueue<Integer> pq = new PriorityQueue<>(new Comparator<Integer>() {
1818
@Override
@@ -78,7 +78,7 @@ public void swap(int[] nums, int x, int y) {
7878
public static void main(String[] args) {
7979
int[] nums = {3,2,1,5,6,4};
8080
int k = 2;
81-
Main215 m = new Main215();
81+
Main215_TopK m = new Main215_TopK();
8282
System.out.println(m.findKthLargest(nums, k));
8383
}
8484
}

0 commit comments

Comments
 (0)