Level order Zig zag

https://ide.codingblocks.com/s/62893

i dont know where i am going wrong

Hi Anshu, there is a problem in your build tree function. It is getting stuck while taking true and false as input. Also,
Line no. 68 is not required,
swap function has not been used correctly. it should be:

swap(s1,s2)
// instead of
s1.swap(s2)

Pls fix these bugs. Hope this helps :slight_smile:

Still Not working its not printing i dont know why