Doubt regarding the input

howto build the tree Im not getting the input format

you can start with this template

I have written the code for building tree
now you have to write the main code for printing vertical order

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.

can you please explain how you did

this is same as level level order traversal

have to learn it??

in which part you have doubt ?

why there is a 4 in front of the input

you are asking about sample input ??

4 is not of levels in the tree
no use as such

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.