BUILD TREE FROM PREORDER AND INORDER,

If we have given only input according to inorder traversal, how can we make different trees from single input?

Nope, if and only if any of inorder, preorder, postorder are given then we won’t be able to construct a tree.
But any of them with combination of one other is given then a tree can be constructed with it.
like

postorder + preorder
preorder + inorder
inorder + postorder

okay bhaiya , thank you!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.