โ† Amazon questions

Print nodes on a line drawn from root

Filed under Amazon

The question

Given a binary tree, print all nodes that fall on a straight line drawn from the root node.

No write-up yet. Related questions below have one.

Related Amazon questions

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