摘要: class Solution { //建图,bfs public boolean canFinish(int numCourses, int[][] prerequisites) { if(prerequisites.length==0)return true; int[] inDegree=new 阅读全文
posted @ 2021-10-09 20:19 wsshub 阅读(30) 评论(0) 推荐(0)
摘要: Arrays.sort(intervals,new Comparator<int[]>(){ public int compare(int[] o1,int[] o2){ if(o1[0]!=o2[0]) return o1[0]-o2[0]; else return o1[1]-o2[1]; } 阅读全文
posted @ 2021-10-09 17:46 wsshub 阅读(333) 评论(0) 推荐(0)