解题报告 uva548 boj17687

题目地址http://www.bnuoj.com/bnuoj/problem_show.php?pid=17687

读题时的难点:For each tree description you should output the value of the leaf node of a path of least value. In the case of multiple paths of least value you should pick the one with the least value on the terminal node.

解题时的思考顺序:根据中序和后序遍历构建二叉树。然后再遍历二叉树找到要求的值

你可能感兴趣的:(解题报告 uva548 boj17687)