开发平台(Platform): (Ex: Win10, Linux, ...)
Win10
程式码(Code):(请善用置底文网页, 记得排版,禁止使用图档)
https://ideone.com/4Pjvqx
补充说明(Supplement):
题目:
Input Format:第一行正整数表示节点数量,第二行为pre-order traversal,第三行为in-o
rder traversal
Output Format:post-order traversal
Sample Input:
15
1 2 5 9 10 11 6 3 7 12 4 8 13 14 15
9 9 5 10 10 5 11 11 2 6 6 2 1 7 7 12 12 3 3 1 4 4 13 13 8 14 14 8 15 15
Sample Output:
9 10 11 5 6 2 12 7 3 13 14 15 8 4 1
附上OJ结果:
![]()
请大家帮我看看哪里有问题QQ我真的找不到
感谢板上的大家