← Amazon questions

Path length with maximum number of bends

Filed under Amazon

Given the root of a binary tree, find the maximum number of bends in any path from the root to a leaf node. A bend is defined as a direction change along the path, specifically when moving from a left…

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.