the code is giving correct output for the sample input
but its not getting submitted please help…
Why is it giving run error?
hello @we_kaash
construct a normal bst, the given input is not in preorder so u cannot use the method that u are using currently.
1 Like
yes sir just a minute ago i realised the same thing

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.