← Amazon questions

Connect next pointers of N-ary tree children in spiral order

Filed under Amazon

Traverse an N-ary tree and link siblings using a next pointer in a spiral fashion across levels (left-to-right on one level, right-to-left on the next, etc.).

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.