โ† Amazon questions

N-ary tree right view with zigzag order

Filed under Amazon

Given an N-ary tree, print the right view of the tree, and additionally print the right view in a zigzag pattern alternating between top and bottom elements.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.