the given preoreer sequence what will be left child of 6 ? 4,2,1,3,6,5,7
Answers
Answered by
0
Answer: in[] = {2, 1, 3}
post[] = {2, 3, 1}
Output: Root of below tree
1
/ \
2 3
Input:
in[] = {4, 8, 2, 5, 1, 6, 3, 7}
post[] = {8, 4, 5, 2, 6, 7, 3, 1}
Output: Root of below tree
1
/ \
2 3
/ \ / \
4 5 6 7
\
8
Step-by-step explanation: PLEASE MARK ME THE BRAINLEIST
Similar questions