这种题目,只要是自己肯动手画画,不可能做不出来的
如果这步也做不到,建议放弃算法方向
【 在 freyoneby (freyoneby) 的大作中提到: 】
: 标 题: 知道中序和序怎么快速求后序?
: 发信站: 水木社区 (Sat Nov 6 15:48:11 2021), 站内
:
: Given the inorder traversal and preorder traversal of a tree, output the postorder traversal of the
: tree. Example:
: Input: “BAC”, “ABC” Output: “BCA
: --
:
: ※ 来源:·水木社区
http://www.mysmth.net·[FROM: 117.59.117.*]
--
FROM 222.90.62.*