Skip to content

Commit f9425fe

Browse files
refactor 1020
1 parent c34e168 commit f9425fe

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/main/java/com/fishercoder/solutions/_1020.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
package com.fishercoder.solutions;
22

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-
133
public class _1020 {
144
public static class Solution1 {
155
public void walk(int[][] A, boolean[][] visited, int x, int y) {

0 commit comments

Comments
 (0)