We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34e168 commit f9425feCopy full SHA for f9425fe
src/main/java/com/fishercoder/solutions/_1020.java
@@ -1,15 +1,5 @@
1
package com.fishercoder.solutions;
2
3
-/**
4
- * 1020. Number of Enclaves
5
- *
6
- * Given a 2D array A, each cell is 0 (representing sea) or 1 (representing land)
7
8
- * A move consists of walking from one land square 4-directionally to another land square, or off the boundary of the grid.
9
10
- * Return the number of land squares in the grid for which we cannot walk off the boundary of the grid in any number of moves.
11
- */
12
-
13
public class _1020 {
14
public static class Solution1 {
15
public void walk(int[][] A, boolean[][] visited, int x, int y) {
0 commit comments