← Amazon questions

Longest chain length in a binary tree

Filed under Amazon

Define a chain in a binary tree as the sum of the lengths of the left node series, right node series, and 1. Find the maximum chain length across all nodes in the binary tree.

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.