I donot understand the input formatā¦plz explain
I donot understand the input format..plz explain
input is given in preorder format, that is, first you get current node followed by true/false.
If true go ahead as this will be left child,else go to right child as left child is null. Proceed similarly recursively.
PS : you donāt have to actually construct tree! you can simply check equivalence of inputs as strings!
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.