i am unable how to print bec in sample u have given just a simple case please tell where am i wrong
Create tree 628 please response asap
pleae tell where i was wrong
pleae tell where i was wrong that is more important than the submission
@neeleshr628 hey neelesh there are several case
you have to consider 4 cases
2 => 1 <= END
3 => 2 <= END
END => 3 <= END
case 1 if root->left!=null &&root>right!=null
2 => 1 <= 4
then you have to print values on the both sides and in mid there will be root->data
case 2 if root->left==null and root->right==null
END => 3 <= END
if root->left!=null and root->right==null
2 => 1 <= END
if root->left==null and root->right!=null
END => 3 <= 7
Note in mid parent root node will be there
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.