题解 | #岛屿数量#
岛屿数量
https://www.nowcoder.com/practice/0c9664d1554e466aa107d899418e814e
{'1','1','0','0','0'},
{'0','1','0','1','1'},
{'0','0','0','1','1'},
{'0','0','0','0','0'},
{'0','0','1','1','1'}
遍历这个2重数组
1、如果遍历到这里如果当前值为1,
则将这个值的上下左右全部置为0,count++