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:

LinkedIn

LinkedIn

Meta


Question Timeline

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

Early March, 2026

LinkedIn

LinkedIn

Junior

Early August, 2025

Meta

Senior

Early April, 2025

Meta

Mid-level

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