637. Average of Levels in Binary Tree(一棵樹每層節點的平均數)(二叉樹的層序遍歷)...

Given a non-empty binary tree, return the average value of the nodes on each level in the form of an array. Example 1: Input: 3 / \ 9 20 / \ 15 7 Output: [3, 14.5, 11] Explanation:
相關文章
相關標籤/搜索