Calculate the shortest distance between two lakes in a matrix of ones and zeroes where the land was ones and the water was zeros

后端 未结 0 1551
逝去的感伤
逝去的感伤 2021-02-04 16:32

I have asked this question in one if the interview, I have worked on Graph(BFS/DFS) , but I am not sure how to modify program of finding number of connected components solution

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