摘要:
总而言之 BFS的方法对于静态的图的联通块问题比较好解 Union Find 解决动态的图的联通块的问题 1. BFS TIME: O(MxN) Space: O(min(M,N)) because in worst case where the grid is filled with lands, 阅读全文
posted @ 2018-08-31 13:04
葫芦胡同749
阅读(114)
评论(0)
推荐(0)

浙公网安备 33010602011771号