codelink: https://ide.codingblocks.com/s/183207
hey what’s wrong in my code why not it is printing any output please specify the error and correct it
Level Order Zigzag
Hi @Divya_321,
in ur build tree function, pass (node* &root, string message).
if u dont add & before root, no changes are done to root since function gets a copy of root. So put & before root .
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.