Back to QuestionsPractice with This Question
Binary Tree Zigzag Level Order Traversal
110.8K views•Asked at Google•
Medium
Question Explain
Given the root of a binary tree, return the zigzag level order traversal of its nodes' values (i.e., from left to right, then right to left for the next level, and so on). Use two stacks or a deque.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.