Binary Tree Zigzag Level Order Traversal at Amazon
Medium63.1% acceptance
This problem has 62.5% frequency at Amazon.
Problem Description
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 alternate between).
Read full problem and hintsTopics
Also asked at 16 companies
More Amazon Questions
Number of IslandsMediumWord LadderHardCourse ScheduleMediumLowest Common Ancestor of a Binary TreeMediumRotting OrangesMedium
View all Amazon questions