摘要:
建立一个映射,old_graph -> clone_graph 节点的映射。如果不存在就新建,如果存在就把映射的节点push_back到neighbor里面/** * Definition for undirected graph. * struct UndirectedGraphNode { * int label; * vector neighbors; * UndirectedGraphNode(int x) : label(x) {}; * }; */class Solution {public: UndirectedGraphNode *cloneGra... 阅读全文
posted @ 2013-12-29 23:02 1957 阅读(520) 评论(0) 推荐(0) 编辑