Https://ide.codingblocks.com/s/259726

why my preorder and inoreder fiunction giving segmentation fault please comment it out the mistake s

hello @Aditya-Kushwaha-914550392281281
a) image
it should be j<e
b) add an if condition in this function
if s==e return root

c) image
remove 100 from both the arrays ( it will create array of size 100 ,which we dont want)

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.