If I am taking input in the following manner in the given code how is it that compiler knows that the string ends after true is encountered or the digit is entered. If I enter the code in the manner given in the sample input isn’t that one string?
Doubt in how input is being processed
hello @Ayush-Kokande-2816457821730452
pls check this

here we are building tree using preorder format where true/false is indicating whether left/right subtree exist or not,if exist then recusively build the tree otherwise return.
u can assume that root node will always given.
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.