← Amazon questions

Boundary Traversal of Binary Tree

Filed under Amazon · Also reported at Adobe, Amadeus, Azuga Telematics, Brane Enterprises, Cadence, DBS, Epic Systems, Fanatics and 9 more

Given the root of a binary tree, return its boundary traversal in anti-clockwise order starting from the root. The boundary consists of the root, the left boundary (excluding leaves), all leaf nodes…

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.