← Amazon questions
CodingReported in a candidate post, Jul 2025

Zigzag tree traversal

Filed under Amazon · Also reported at Adobe, Cisco, Clari5 (CustomerXPs), Expedia, Goldman Sachs, LoanUnbox.com, OYO, Paytm and 1 more

Given the root of a binary tree, return its zigzag level-order traversal: the node values level by level, left to right on the first level, right to left on the second, alternating after that. Return…

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.