← Samsung questions
CodingReported in a candidate post, Dec 2020

Spiral traversal

Filed under Samsung

Perform a spiral (zigzag level order) traversal of a binary tree, alternating traversal directions between left-to-right and right-to-left for each successive level.

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 Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.