
Graph
文章平均质量分 87
dyllanzhou
这个作者很懒,什么都没留下…
展开
-
[Leetcode]Clone Graph
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for each原创 2015-11-05 21:25:37 · 272 阅读 · 0 评论 -
[Leetcode]Graph Valid Tree
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges make up a valid tree. For example: Given n =原创 2015-10-27 16:41:59 · 877 阅读 · 0 评论