Skip to content

Commit e09f6a7

Browse files
authored
Update 200-Number-of-Islands.py
This queue is not used in the recursive dfs function. Probably a remnant from the bfs solution shown on the youtube video.
1 parent 51bcb14 commit e09f6a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

200-Number-of-Islands.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ def numIslands(self, grid: List[List[str]]) -> int:
44
return 0
55

66
islands = 0
7-
q = collections.deque()
87
visit = set()
98
rows, cols = len(grid), len(grid[0])
109

0 commit comments

Comments
 (0)