diff --git a/src/class09_15/Code02_NumberOfIslands.java b/src/class09_15/Code02_NumberOfIslands.java index 5ffdc55..df8d8df 100644 --- a/src/class09_15/Code02_NumberOfIslands.java +++ b/src/class09_15/Code02_NumberOfIslands.java @@ -5,6 +5,9 @@ import java.util.HashMap; import java.util.List; import java.util.Stack; +// 本题为leetcode原题 +// 测试链接:https://leetcode.com/problems/number-of-islands/ +// 所有方法都可以直接通过 public class Code02_NumberOfIslands { public static int numIslands3(char[][] board) { diff --git a/src/class09_15/Code03_NumberOfIslandsII.java b/src/class09_15/Code03_NumberOfIslandsII.java index ab61ed3..f0049c2 100644 --- a/src/class09_15/Code03_NumberOfIslandsII.java +++ b/src/class09_15/Code03_NumberOfIslandsII.java @@ -3,6 +3,9 @@ package class09_15; import java.util.ArrayList; import java.util.List; +// 本题为leetcode原题 +// 测试链接:https://leetcode.com/problems/number-of-islands-ii/ +// 所有方法都可以直接通过 public class Code03_NumberOfIslandsII { public static List numIslands2(int m, int n, int[][] positions) {