Merge pull request #1763 from Undertone0809/patch-2

update 0695.岛屿的最大面积.md
This commit is contained in:
程序员Carl
2022-12-04 10:44:23 +08:00
committed by GitHub

View File

@ -197,7 +197,6 @@ class Solution:
if not visited[i][j] and grid[i][j] == 1:
# 每一个新岛屿
self.count = 0
print(f'{self.count}')
self.bfs(grid, visited, i, j)
result = max(result, self.count)