how to print bottom view of tree
How to print bottom view of tree
hi @hhiteshbansal_40d12e2460a1738e ,
algo is simple just iterate over the tree and if a new width is found than store it
if new width is not found then check if u r at lower level at same width if yes than store this one at that width remove earlier data
refer this for implementation of same algo : ive commented the code https://ide.codingblocks.com/s/656170
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.
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.
can you share the an example of implementation
your code is not working
the code that you have send earlier is not working and is showing error please tell me what is the error over their
@hhiteshbansal_40d12e2460a1738e, as such theres no error in that code thats just the function ive send u …how u have implemented i need to see that for error
can you send the full code as i also have problem in implicating the problem
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.