Convert a Grid of 1's and 0's to Adjacency Matrix

前端 未结 0 1845
闹比i
闹比i 2020-12-07 02:18

I have a NxN grid of 1\'s and 0\'s. 1 represents land and 0 represents lava. I\'m tasked to find the shortest distance between all pieces of land (if a cell is land then the

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