Skip to content

Commit

Permalink
把变量 points 修改为 intvs
Browse files Browse the repository at this point in the history
把变量 points 修改为 intvs
  • Loading branch information
zhangxiann authored and labuladong committed Nov 4, 2020
1 parent 820a10f commit 393c5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 动态规划系列/贪心算法之区间调度问题.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int intervalSchedule(int[][] intvs) {}
public int intervalSchedule(int[][] intvs) {
if (intvs.length == 0) return 0;
// 按 end 升序排序
Arrays.sort(points, new Comparator<int[]>() {
Arrays.sort(intvs, new Comparator<int[]>() {
@Override
public int compare(int[] a, int[] b) {
// 这里不能使用 a[1] - b[1],要注意溢出问题
Expand Down

0 comments on commit 393c5c4

Please sign in to comment.