Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite09f6a7

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 parent51bcb14 commite09f6a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎200-Number-of-Islands.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ def numIslands(self, grid: List[List[str]]) -> int:
44
return0
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)

[8]ページ先頭

©2009-2025 Movatter.jp