plz can u explain more about the disp results
Create tree ( Using preorder and inorder)
Hi anshul
In inorder there is patter
Left root right
Preorder
Root left right
So u know in preorder the first will be root and Same u have to find in inorder
Because in inorder if u find the root then the part to it’s left form left sub tree and the part to it’s right form right sub tree
And now u have to call the recursion for the further nodes