โ† Amazon questions
CodingReported in a candidate post, Jul 2025

Spiral level-order traversal and topological sort

Filed under Amazon

Given a binary tree, return the spiral level-order traversal of its nodes' values (i.e., level-by-level, alternating left-to-right then 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.