Structurally identical bst

how to take input in this bst? i am not able to take the input.

@ankit152
The problem provides you with modified preorder input. You take an integer as input for data. Then you ask for the existence of its left child. If you get “true” , the left child exists and you take input for left child . Otherwise if you get “false” , the child doesn’t exist and then you simply move on with the right child just like PreOrder function. Refer to my input function for further clarification and let me know if you have any further doubts regarding it.
Input function code - https://ide.codingblocks.com/s/101774

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.