โ† Amazon questions

Print tree nodes in level order with newlines

Filed under Amazon

Given a binary tree, perform a level-order traversal and print the nodes of each level on a new line.

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.