From 393c5c498eb121a143fb57695eb37a7ad5388130 Mon Sep 17 00:00:00 2001 From: zhangxian Date: Tue, 3 Nov 2020 09:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E5=8F=98=E9=87=8F=20points=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=20intvs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 把变量 points 修改为 intvs --- ...\227\264\350\260\203\345\272\246\351\227\256\351\242\230.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\345\212\250\346\200\201\350\247\204\345\210\222\347\263\273\345\210\227/\350\264\252\345\277\203\347\256\227\346\263\225\344\271\213\345\214\272\351\227\264\350\260\203\345\272\246\351\227\256\351\242\230.md" "b/\345\212\250\346\200\201\350\247\204\345\210\222\347\263\273\345\210\227/\350\264\252\345\277\203\347\256\227\346\263\225\344\271\213\345\214\272\351\227\264\350\260\203\345\272\246\351\227\256\351\242\230.md" index a1422d7..38f5445 100644 --- "a/\345\212\250\346\200\201\350\247\204\345\210\222\347\263\273\345\210\227/\350\264\252\345\277\203\347\256\227\346\263\225\344\271\213\345\214\272\351\227\264\350\260\203\345\272\246\351\227\256\351\242\230.md" +++ "b/\345\212\250\346\200\201\350\247\204\345\210\222\347\263\273\345\210\227/\350\264\252\345\277\203\347\256\227\346\263\225\344\271\213\345\214\272\351\227\264\350\260\203\345\272\246\351\227\256\351\242\230.md" @@ -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() { + Arrays.sort(intvs, new Comparator() { @Override public int compare(int[] a, int[] b) { // 这里不能使用 a[1] - b[1],要注意溢出问题 -- GitLab