How will i take treu and false as input to solve the question?Do i have to take it as -1 when there is false written and nothing when it is true?
Structurally Identical BST
hello @aryamaan1011
true indicates that subtree exist and false exist that subtree not exists.
so when u encounter true u should recusively build the subtree .
otherwise for false simply add null for that subtree.
refer this ->

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.