code giving error pls check and also pls provide a better approach to this problem than the one i had tried
Error in output
wait some time will check
@souravkhanna227 you have to build tree like this see the preino function
make every preorder value as root
search it in inorder array
from that call to left
then call to right
you have taken so many variables it seems confusing