← Amazon questions

Print binary tree in vertical order

Filed under Amazon · Also reported at Accolite, Grofers

Given a binary tree, return the vertical order traversal of its nodes' values. For each column from leftmost to rightmost, nodes should be ordered from top to bottom.

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.