[LeetCode] 2265. Count Nodes Equal to Average of Subtree

Given the root of a binary tree, return the number of nodes where the value of the node is equal to the average of the values in its subtree. Note: Th
posted @ 2023-11-03 07:02  CNoodle  阅读(31)  评论(0编辑  收藏  举报