I do not know if the following case should be considered.
11111 11011 10101 11011 11111
In this case, the number of island is 2, right?
I'm going crazy to understand this case. I see only 1 island for the only center 1 with 4 0s around.
Can any one please tell me where is another island other than the center one??
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.