Create tree(using preorder and inorder)

https://ide.geeksforgeeks.org/4bUgqVRVNm
why is the code giving segmentation fault

Hi @anitagupta1411
refer this --> https://ide.codingblocks.com/s/619328

Hi… i hope ur doubt is cleared now??

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.