Skip to content

Commit

Permalink
Update max-area-of-island.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Oct 10, 2017
1 parent d0e3b86 commit fed5401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/max-area-of-island.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Time: O(m * n)
# Space: O(m + n)
# Space: O(m * n), the max depth of dfs may be m * n

# Given a non-empty 2D array grid of 0's and 1's,
# an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.)
Expand Down

0 comments on commit fed5401

Please sign in to comment.