Skip to content

Commit 909971e

Browse files
authored
Update 0695.岛屿的最大面积.md
1 parent a079002 commit 909971e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

problems/0695.岛屿的最大面积.md

-4
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,7 @@ func maxAreaOfIsland(grid [][]int) int {
535535
for i, rows := range grid {
536536
for j, v := range rows {
537537
if v == 1 && !visited[i][j] {
538-
// 第一种写法,重制 count,必定有 1 个
539-
// count = 1
540-
// 第二种写法以及 bfs
541538
count = 0
542-
// dfs(grid, visited, i, j)
543539
bfs(grid, visited, i, j)
544540
res = max(res, count)
545541
}

0 commit comments

Comments
 (0)