![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PTA
cainiao_23333
这个作者很懒,什么都没留下…
展开
-
07-图6 旅游规划 (25分)(7-9 旅游规划 (25分))
https://pintia.cn/problem-sets/15/problems/717 数据结构与算法题目集(中文)--> 编程题 --> 7-9 有了一张自驾旅游路线图,你会知道城市间的高速公路长度、以及该公路要收取的过路费。现在需要你写一个程序,帮助前来咨询的游客找一条出发地和目的地之间的最短路径。如果有若干条路径都是最短的,那么需要输出最便宜的一条路径。 输入格式: ...原创 2019-12-11 12:37:08 · 247 阅读 · 0 评论 -
03-树3 Tree Traversals Again (25分)(1086 Tree Traversals Again)
https://pintia.cn/problem-sets/994805342720868352/problems/994805380754817024 An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a...原创 2019-12-10 13:01:55 · 102 阅读 · 0 评论