Tree left view Problem

I am not getting correct output


Kindly please resolve issue as I am using queue

@sulbh579
The input is given in level order traversal but i think you are taking it as preorder form.

For how to take input in level order form, please have a look at this code https://ide.codingblocks.com/s/242043

Also if you any further doubt then feel free to ask, also simplify your code before asking by removing all the not needed code snippets.
Otherwise if you are able to solve it now then please mark it as resolved.

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.