i am not able to understand the input format of the question so please help.
Level order zigzag problem
@Aryanomar00
You are being provided a modified preorder input where instead of -1 to denote that the node does not exist , you get input “false”. And if the node does exist , you are first given “true” and then its data.
Refer to this input function code and let me know if you have any trouble understanding.
Input function - https://ide.codingblocks.com/s/112907
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.