Please give the code for right view

please give the code for right view…

bascically problem is that how to take input in this manner

Hello @sunneykumar309 you can take this input with the help of the Queue.


if you have any doubt in this you can ask here:
HappyLearning!!

/bin/run.sh: line 4: 18 Killed /////////////////
i an getting this error when i submit the code for left view

Coding Blocks IDE

you have askes the code for right view but if you want to do for right first then you to make call for left first and then for right.

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.