add comment

pull/6/head
左程云 4 years ago
parent 86a394378a
commit aa598b5e46

@ -5,6 +5,9 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Stack; import java.util.Stack;
// 本题为leetcode原题
// 测试链接https://leetcode.com/problems/number-of-islands/
// 所有方法都可以直接通过
public class Code02_NumberOfIslands { public class Code02_NumberOfIslands {
public static int numIslands3(char[][] board) { public static int numIslands3(char[][] board) {

@ -3,6 +3,9 @@ package class09_15;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
// 本题为leetcode原题
// 测试链接https://leetcode.com/problems/number-of-islands-ii/
// 所有方法都可以直接通过
public class Code03_NumberOfIslandsII { public class Code03_NumberOfIslandsII {
public static List<Integer> numIslands2(int m, int n, int[][] positions) { public static List<Integer> numIslands2(int m, int n, int[][] positions) {

Loading…
Cancel
Save