← Amazon questions

Level with maximum nodes and sum in tree

Filed under Amazon

Given the root of a binary tree, find the 1-indexed level number that has the maximum number of nodes. If multiple levels tie for the maximum node count, choose the level among them with the maximum…

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.