LightOJ NO.1094 Farthest Nodes in a Tree(树的直径,链式前向星+搜索)
问题描述:给出图来,让你算出树的最大直径即两点之间最长的距离。原题描述:DescriptionGiven a tree (a connected graph with no cycles), you have to find the farthest nodes in the tree. The edges of the tree are weighted and un
原创
2016-04-16 14:07:28 ·
418 阅读 ·
0 评论