Right view- printing tree instead of its right view

In this question we have to take input in a level order manner. Do that if it still didn’t pass the test case , let me know.

but the method of input has nothing to do with the answer, it will still come wrong

I am getting whole tree instead of only right side

Check now ->


all the changes that i have mentioned have been applied and it has passed all test cases. You can check.

1 Like

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.