Back to Questions

Find Subtree with Maximum Average

39.9K viewsAsked at Meta
Medium

Question Explain

Given the root of a non-empty binary tree, find the subtree with the maximum average value. The average is calculated by the sum of nodes divided by the count of nodes in the subtree.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question