Given a binary tree, print the endmost nodes (leftmost or rightmost) in a zig-zag order level by level. At odd levels, print the leftmost node; at even levels, print the rightmost node (or vice…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.