摘要: 1129. 颜色交替的最短路径 题解: BFS 宽搜 用宽搜求最短路 public int[] shortestAlternatingPaths(int n, int[][] redEdges, int[][] blueEdges) { int[] res = new int[n]; res[0] 阅读全文
posted @ 2023-02-02 18:31 Eiffelzero 阅读(34) 评论(0) 推荐(0)