Vertical order print using map

Kindly tell the mistake i am doing in my code

give the input as -

1 2 3 4 5 6 7 -1 -1 -1 -1 -1 8 -1 9 -1 -1 -1 -1

and see the output for my code…

Hi tanay there were mistakes in your code.
you were supposed to build tree using level order traversal according to the input.
and some more modifications have been
refer this
https://ide.codingblocks.com/s/76204.
if you still don’t get that you can further msg.

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.

yes thanks for your help it got solved :slight_smile: