提交 393c5c49 编写于 作者: Z zhangxian 提交者: labuladong

把变量 points 修改为 intvs

把变量 points 修改为 intvs
上级 820a10f4
......@@ -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],要注意溢出问题
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册