Ambiguous input

Please clear the input it looks ambiguous to me.

hello @gaurav19063

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 ->
image

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.

aman can you tell me how to think this approach by my own?
I am still having some problems in this kind of tree building.

see these techniques are based on standard algorithm likw
preorder traversal ,
level order traversal,
tree from preorder and inorder,
tree from postorder and inorder
bst construction using simple insertion,
balanced bst from array.

so if u r facing any issue then i would recommend to read about them ,
implement them on ur own and then apply it in various questions

1 Like