I have written everything just tell me about the print function
I have written everything just tell me about the print function
@anmolaggarwal.432 in the given example, the tree formed is:
1
/
2
/
3
The print function is:
- do preorder traversal (root, left, right)
- when printing the content of the root node, the format is
root->left->value
=>root->value
<=root->right->value
- If the left or right child is NULL, print
END
instead of its value
try to write the print function according to the algorithm i mentioned above
Please teach me how to debug
Thank you done everything got cleared
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.