![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图的遍历
薛定谔的菜
这个作者很懒,什么都没留下…
展开
-
1076 Forwards on Weibo (30 分)
1076Forwards on Weibo(30分) Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed wi...原创 2019-03-15 22:13:20 · 106 阅读 · 0 评论 -
1034 Head of a Gang (30 分)
1034Head of a Gang(30 分) One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call betweenAandB, we say thatAandBis related. The weight of a...原创 2019-03-12 15:16:57 · 315 阅读 · 0 评论 -
1013 Battle Over Cities (25 分)
1013Battle Over Cities(25 分) It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We...原创 2019-03-12 16:29:40 · 263 阅读 · 0 评论 -
1021 Deepest Root (25 分)
1021Deepest Root(25分) A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a ...原创 2019-03-13 13:47:19 · 262 阅读 · 0 评论