few test not passing
Create tree doubt
Hello @mohitsethia,
You are building the Tree correctly.
But the way you are printing it is wrong.
I have corrected it:
Hope, this would help.
Give a like if you are satisfied.
1 Like
Okay, I have to print it in preorder. I didn’t see that part in the question. Thank you 