Is this way right to print right view using queue


if my code can be improved please tell

hello @guptanikhil898
approach is correct (cant comment on implementation , submit and check what u r getting).

try to do it without any extra space linke queue
or
u can also try to code ur solution iteratively that will be bit efficient because it will not involve any recursion

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.