Tree Bottom View

Can you please explain to me why is 5 not included in the bottom view?

Hey @Avi-Kasliwal-315786729062203
If you see from the bottom 5 and 6 will overlap
In case of overlap you can assume you will see value which comes later in level order traversal

from the bottom should i not see all the leaf nodes?

@Avi-Kasliwal-315786729062203
Have a look at this https://www.geeksforgeeks.org/bottom-view-binary-tree/

1 Like

ok, thankyou
please add the definition for bottom node in the question as well :slight_smile:

@Avi-Kasliwal-315786729062203
Will share your concern with the team
Thanks for the suggestion :slight_smile:
If your doubt is resolved please close it