求先序排列
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
给出一棵二叉树的中序与后序排列。求出它的先序排列。(约定树结点用不同的大写字母表示,长度≤8)。
输入格式
每个测试文件只包含一组测试数据,每组输入包含两行,第一行输入一个字符串表示二叉树的中序排列,第二行输入一个字符串表示二叉树的后序排列。
输出格式
对于每组输入数据,输出二叉树的先序排列。
样例
BADC
BDCAABCD
黑猫白银级公开赛04
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2024-2-16 16:00
- End at
- 2024-2-25 0:00
- Duration
- 200 hour(s)
- Host
- Partic.
- 10