Tree bottom view

I am not able to understand this question. can u explain with a different example

Hey @mikkyimran
Try this once https://www.geeksforgeeks.org/bottom-view-binary-tree/
If you still need help, we’ll try something else and figure it out together.

sir i am not able to understand and -1 represents end of input right ? but why there are six -1 in the input?

@mikkyimran -1 doesn’t mean end of input. It just means NULL node. There is even a video at the end of the article. Try that for better understanding.

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.