Solving Number of Islands in go. Please try yourself first to solve the problem and submit your implementation to LeetCode before looking into solution.

Problem Description

Example 1:

Input:
11110
11010
11000
00000

Output: 1

Example 2:

Input:
11000
11000
00100
00011

Output: 3

See the full details of the problem Number of Islands at LeetCode

Originally posted at: @github.com/halfrost/LeetCode-Go