Zig zag binary tree traversal leetcode

which is my error?

@chaman9 your first while loop should be like this while(!s1.empty() || !s2.empty()) .it will start giving you output but your code have some mistakes you will get it after you see the output.

yeeah got it thank you @sdevwrat

1 Like