Number of Islands problem. BFS solution is slow, trying to figure out the bottlenecks

前端 未结 0 1113
野的像风
野的像风 2021-01-03 02:13

Given an m x n 2d grid map of \'1\'s (land) and \'0\'s (water), return the number of islands.

An island is surrounded by water and is formed by connecting adjacent la

相关标签:
回答
  • 消灭零回复
提交回复
热议问题