Level order zigzag

it is not passing one testcase.

Dry run your code on
10 false true 20 false false

its only giving 10 as output. but i am not able to find out my mistake.

In line 40 change parameter “l” to “r” that you are passing to buildtree.

thank u so much, its done

1 Like