this code has passed the vertical oreder print…and also top view by just printing the first number of vector…and here i am printing the last number of vector…but why is it failing.???
plzzz help
Tree bottom view plzz help
Nikhil see for bottom view we have to use level order traversal
when we traversal tree in level order manner then only we get correct ans
because in recursion either you complete left half first or right half first
in this way you are not able to find last element that is the element viewed from bottom because for one value of hd there are two or more nodes.
i hope you understand
hey u are asking a foolish question