Preorder array pointer

what is the meaning of saying that if we make the pointer of preorder array a local variable it will BACKTRACK .

@bvidab18 See here what we wants is that every select every element of preorder should be considered as root and corresponding right and left side elements of inorder as child.
So if you will take the pointer for index of preorder as local variable, then whenever next recursive call is made then in that recursive call it will again start from 0, not from the value where we left it previously.

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.