Search
⌘K

Leetcode 103. Binary Tree Zigzag Level Order Traversal

Return the node values grouped by tree depth, but alternate the order of values on each level (left-to-right then right-to-left, and so on). This is a level-order traversal problem where you must flip the output direction for every other level.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early August, 2025

Meta

Senior

Early April, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.