Isn’t the question statement wrong as their is no element 10 in answer but still giving answer 4 as correct and no unique solution as wrong
- Postorder traversal of a given binary search tree is:
10, 3, 2, 5, 6, 4, 8, 11, 9, 15, 20, 19, 12, 7
The inorder traversal of the tree would be:
Is not unique
20, 2, 3, 5, 8, 9, 12 , 11 ,15 ,4, 6, 7, 19
7, 4, 2, 3, 6, 5, 12, 9, 8, 11, 19, 15, 20
2, 3, 4, 5, 6, 7, 8 , 9, 11, 12, 15, 19, 20