here is the link to my code: https://ide.codingblocks.com/s/208127
please rectify my code
One test case is not passing
@Bhavit_Singla
hello Bhavit,
u should store information of level as well in ur map.
and perform update operation only in following cases:
a) if u encounter a new key
b) if key is there in ur map by the level is smaller than ur current level.
pls refer this-> https://www.geeksforgeeks.org/bottom-view-binary-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.