โ† Amazon questions
CodingReported in a candidate post, Nov 2021

Print all root-to-leaf paths as linked lists

Filed under Amazon

Given a binary tree, find all paths from the root to every leaf node and return them as an array of linked lists.

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.