Right side view binary tree

what we have to write in main?

@itsexp_2302
u can refer to dis code.


If u still have any doubts or feel like something is unclear, feel free to post ur doubts here.

this code is what you have given to input.
what about the random input?i mean if question demands inputs by the user

@itsexp_2302
refer to the following code to take input when the given input is in level order format


hope dis helps

i didnt get this point?

@itsexp_2302


this is the complete code.
in this u will have to give input in level order format.
eg input={1,2,3,4,5,6,7,-1,-1,-1,-1,-1,-1,-1,-1}
here 1 is at level 1
2 and 3 are at level 2
4 5 6 7 are at level 3
and at level 4 all values are NULL.
Hope dis helps

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.