Skip to content

Commit 85dffcf

Browse files
fix build
1 parent 4260585 commit 85dffcf

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
public class _1020 {
1414
public static class Solution1 {
1515
public void walk(int[][] A, boolean[][] visited, int x, int y) {
16-
if (x >= A.length || x < 0 || y >= A[0].length || y < 0) return;
17-
if (visited[x][y]) return;
18-
if (A[x][y] == 0) return;
16+
if (x >= A.length || x < 0 || y >= A[0].length || y < 0) {
17+
return;
18+
}
19+
if (visited[x][y]) {
20+
return;
21+
}
22+
if (A[x][y] == 0) {
23+
return;
24+
}
1925

2026
visited[x][y] = true;
2127

0 commit comments

Comments
 (0)