Skip to content

Commit 393c5c4

Browse files
zhangxiannlabuladong
authored andcommitted
把变量 points 修改为 intvs
把变量 points 修改为 intvs
1 parent 820a10f commit 393c5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

动态规划系列/贪心算法之区间调度问题.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ int intervalSchedule(int[][] intvs) {}
7272
public int intervalSchedule(int[][] intvs) {
7373
if (intvs.length == 0) return 0;
7474
// 按 end 升序排序
75-
Arrays.sort(points, new Comparator<int[]>() {
75+
Arrays.sort(intvs, new Comparator<int[]>() {
7676
@Override
7777
public int compare(int[] a, int[] b) {
7878
// 这里不能使用 a[1] - b[1],要注意溢出问题

0 commit comments

Comments
 (0)