Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9425fe

Browse files
refactor 1020
1 parentc34e168 commitf9425fe

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
packagecom.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
publicclass_1020 {
144
publicstaticclassSolution1 {
155
publicvoidwalk(int[][]A,boolean[][]visited,intx,inty) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp