Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2265. Count Nodes Equal to Average of Subtree
Count the nodes in a binary tree whose value equals the integer average (floor of sum/count) of all values in their subtree — solved by computing each node’s subtree sum and size (e.g., with a post-order traversal) and comparing the value to sum//count.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late August, 2025
Meta
Senior
Mid August, 2025
Meta
Senior
Late May, 2025
Meta
Senior
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.