Back to QuestionsPractice with This Question
Find Subtree with Maximum Average
39.9K views•Asked 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.