深度优先搜索
_Gray
这个作者很懒,什么都没留下…
展开
-
1106 Lowest Price in Supply Chain (25 分)
A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer. Starting from one root supplier, everyone on th...原创 2019-01-14 02:09:09 · 94 阅读 · 0 评论 -
1130 Infix Expression (25 分)
Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the operators. Input Specification: Each input file contai...原创 2019-01-22 18:33:02 · 133 阅读 · 0 评论 -
1087 All Roads Lead to Rome (30 分)
Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness. Input Specification: Each ...原创 2019-02-21 14:52:55 · 185 阅读 · 0 评论 -
1053 Path of Equal Weight (30 分)
Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is defined to be the sum of the weights of all the nodes along the path fro...原创 2019-01-30 14:54:24 · 107 阅读 · 0 评论