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: 还是应用广度优先遍历(BFS),然后计算每一层的和就行 阅读全文
posted @ 2017-12-17 13:04 夜的第八章 阅读(123) 评论(0) 推荐(0) 编辑