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

Commit 5293690

Browse files
Number of Islands
1 parent 5a964e7 commit 5293690

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎Graphs/200-Number-of-Islands.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def dfs(self,grid,row,col):
4747
self.dfs(grid,row,col-1)
4848
self.dfs(grid,row,col+1)
4949

50+
# T: O(M * N), where M is the number of rows in the grid and N is the number of columns.
51+
5052
'''
5153
Explanation:
5254

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /