i dont understand how to taker this type of input
I dont understand how to taker this type of input
hello @Aditya-Kushwaha-914550392281281
Here Input is taken in pre-order (root,left,right) fashion here the first value is our root_value and for every node true tells us the node exist and the next value is the node value and false means that the node is NULL
refer this ->

i dont see any mistake, what issue u r facing
![]()
remove these extra spaces from the corners of true.
ur updated code>
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.