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: Note: 这个题主要想总结一下bfs算法: 广度优先遍历:类 阅读全文
posted @ 2019-04-08 23:23 shaer 阅读(110) 评论(0) 推荐(0) 编辑