Create tree doubt


few test not passing

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 :slight_smile:

Anytime @mohitsethia,

Please mark it as resolved.