Code is compiled successfully but not showing the output

code is compiled successfully but not showing the output .
I have also checked the code logic …i think it is correct .
Please have a look into the code

Hey @siddhant_samal

test cases getting wrong

Add endl after print(root)
If this doesn’t work then let me know :slight_smile:

no sir ,not working after making the changes too

Hey @siddhant_samal
You have to print preorder instead of inorder

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.