could you pls tell me where am i wrong in my approach
question: https://hack.codingblocks.com/contests/c/916/954
answer: https://ide.codingblocks.com/s/101700
Bottom view of a tree
@dhruvika
You only called the utility function for the root node. There were no recursive calls or any others calls for the rest of the tree.
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.
but i created new node for left and right subparts of root node
@dhruvika
I am talking about the utility function that you called in Line No. 74. The function makes no recursive calls to the left or the right subtrees and there aren’t any other calls to it the remaining code either. Only the root gets evaluated and the rest of the tree is not considered for the bottom view print.