How to take this input

I am confused so as to how to take this mixed input

Anikash plz send your code, if you have written any by saving on ide so that i could tell you the changes you need to make. Basically here true means having children, and false represents having no children, try this approach for building your tree

1 Like