-->
当前位置:首页 > 题库

PROGRAMMING:Constructing binary tree with postorder and middle order sequences

Luz5年前 (2021-05-10)题库479
Constructing binary tree with postorder and middle order sequences
###Input example:
In the first line, the length of the input sequence is n, in the second line, n characters are input to represent the sequence traversed by the binary tree, and in the third line, n characters are input to represent the sequence traversed by the binary tree
```in
nine
GHDBEIFCA
GDHBAECIF
```
###Output example:
Output binary tree traversal sequence.
```out
ABDGHCEFI
```







answer:If there is no answer, please comment