8000 refactor 200 · asalkov/Leetcode@50fba53 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50fba53

Browse files
refactor 200
1 parent 29e386c commit 50fba53

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-2
lines changed

src/main/java/com/fishercoder/solutions/_200.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22

33
/**
44
* 200. Number of Islands
5+
*
56
* Given a 2d grid map of '1's (land) and '0's (water),
67
* count the number of islands.
78
* An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically.
89
* You may assume all four edges of the grid are all surrounded by water.
910
1011
Example 1:
11-
1212
11110
1313
11010
1414
11000
1515
00000
1616
Answer: 1
1717
1818
Example 2:
19-
2019
11000
2120
11000
2221
00100

0 commit comments

Comments
 (0)
0