
连通
文章平均质量分 79
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 305. Number of Islands II(小岛)
原题网址:https://leetcode.com/problems/number-of-islands-ii/ A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at posit原创 2016-04-19 13:13:25 · 3629 阅读 · 0 评论 -
LeetCode 323. Number of Connected Components in an Undirected Graph(连通分量)
原题网址:https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/ Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), wr原创 2016-04-25 02:50:21 · 2204 阅读 · 0 评论