code: https://ide.codingblocks.com/s/232539
couldn’t pass a test case
Tree Bottom View
@adityakaunhai
Your code is failing this case
Q : 1 6 2 8 7 4 3 11 -1 9 -1 5 -1 -1 -1 -1 -1 10 -1 -1 -1 -1 -1
A : 11 10 9 4 2 3
sir, please suggest changes in the code