Skip to content

Commit 384a434

Browse files
authored
Update Solution.java
1 parent bb50c89 commit 384a434

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g1501_1600/s1568_minimum_number_of_days_to_disconnect_island

1 file changed

+0
-3
lines changed

src/main/java/g1501_1600/s1568_minimum_number_of_days_to_disconnect_island/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public int minDays(int[][] grid) {
3434
}
3535
}
3636
}
37-
3837
if (numOfIslands >= 2) {
3938
return 0;
4039
}
@@ -70,7 +69,6 @@ private void tarjan(
7069
if (nx < 0 || ny < 0 || nx >= grid.length || ny >= grid[0].length) {
7170
continue;
7271
}
73-
7472
if (grid[nx][ny] == 1) {
7573
children++;
7674
tarjan(
@@ -93,7 +91,6 @@ private void tarjan(
9391
lows[x][y] = Math.min(lows[x][y], times[nx][ny]);
9492
}
9593
}
96-
9794
if (prex == -1 && children > 1) {
9895
articulationPoints.add(x * grid.length + y);
9996
}

0 commit comments

Comments
 (0)