Level order zig zag


getting segmentation fault

Hello @mkidwai74 please wait i am checking your code.

@mkidwai74 i have gone through your code but it is not giving the segmentation fault but it is just not giving any output.

@mkidwai74 check this code:

its giving output now but i am not able to figure out what the error was in my code

@mkidwai74 you were not building the tree in the correct way:
when you are taking the string input you dont have to check if it is for true only because if you will check then you will not be able to add null then.