Learn
Practice
Newsletter
Resources
Resume
New
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Construct Binary Tree from Inorder and Postorder Traversal
Bookmark
Input
Standard
Balanced
Custom
inorder
=
[9, 3, 15, 20, 7]
,
postorder
=
[9, 15, 7, 20, 3]
inorder
0
9
1
3
2
15
3
20
4
7
postorder
0
9
1
15
2
7
3
20
4
3
algo
master
.
io
Step:
Start: Build binary tree from inorder and postorder traversals
0 / 37
Input
Standard
Balanced
Custom
inorder
=
[9, 3, 15, 20, 7]
,
postorder
=
[9, 15, 7, 20, 3]
0 / 37
inorder
0
9
1
3
2
15
3
20
4
7
postorder
0
9
1
15
2
7
3
20
4
3
algo
master
.
io
Step:
Start: Build binary tree from inorder and postorder traversals