← Amazon questions

Level order traversal in spiral form

Filed under Amazon · Also reported at Cavisson Systems, Druva, Hike, Komli Media, OLX Groups, Paytm, Teradata

Given a binary tree, return the spiral level order traversal of its nodes' values. (i.e., traverse level by level, alternating between left-to-right and right-to-left).

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.