📅  最后修改于: 2022-03-11 15:00:46.398000             🧑  作者: Mango
Input:
N = 6
inorder[] = {3 1 4 0 5 2}
preorder[] = {0 1 3 4 2 5}
Output: 3 4 1 5 2 0
Explanation: The tree will look like
0
/ \
1 2
/ \ /
3 4 5