Please tell why my code is not sumbitting


please tell why my code is not passing all the testcases inspite everything is correct

@harryson
hello harshit,
ur code looks correct.can u please share the input and output format of given problem so that i can check

image
u forget to print space after printing root data so include that in ur code.
rest everthing is correct

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.