โ† Amazon questions

Minimum length from input node to leaf

Filed under Amazon

Given a binary tree (or general tree) and a reference to a specific target node within that tree, find the minimum length (number of edges) from that target node to any leaf node.

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.