Building tree from preoder and inorder


Code is showing error :
/bin/run.sh: line 4: 17 Segmentation fault (core dumped) ./exe

@a19JE0093
Why are you applying binary search for searching key in inorder array? The arrays are not sorted you cann’t apply binary search over them. Try using search search, it error still persist share me the updated code. I’ll check

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.