package leetcode;

/**
 * https://leetcode.com/problems/number-of-closed-islands/
 */
public class Problem1254 {
    public int closedIsland(int[][] grid) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1254 prob = new Problem1254();
        System.out.println(prob.closedIsland(new int[][]{
            {1,1,1,1,1,1,1,0},
            {1,0,0,0,0,1,1,0},
            {1,0,1,0,1,1,1,0},
            {1,0,0,0,0,1,0,1},
            {1,1,1,1,1,1,1,0}
        })); // 2
        System.out.println(prob.closedIsland(new int[][]{
            {0,0,1,0,0},
            {0,1,0,1,0},
            {0,1,1,1,0}
        })); // 1
        System.out.println(prob.closedIsland(new int[][]{
            {1,1,1,1,1,1,1},
            {1,0,0,0,0,0,1},
            {1,0,1,1,1,0,1},
            {1,0,1,0,1,0,1},
            {1,0,1,1,1,0,1},
            {1,0,0,0,0,0,1},
            {1,1,1,1,1,1,1}
        })); // 2
    }
}

@@ -936,20 +936,250 @@
   %7D)); // 2%0A
+        System.out.println(prob.closedIsland(new int%5B%5D%5B%5D%7B%0A            %7B1,1,1,1,1,1,1,0%7D,%0A            %7B1,1,0,1,0,1,1,0%7D,%0A            %7B1,0,1,0,1,1,1,0%7D,%0A            %7B1,1,0,1,0,1,0,1%7D,%0A            %7B1,1,1,1,1,1,1,0%7D%0A        %7D)); // 7%0A
     %7D%0A%7D%0A

Update problem 1254