← Amazon questions

Find maximum average subtree sum

Filed under Amazon

Given the root of a binary tree, find the maximum average value of any subtree in the tree. A subtree's average is the sum of its node values divided by the number of nodes in that subtree.

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.