摘要: You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9] 题意:找出二叉树一层的最大值解法:用BFS的方式遍历每... 阅读全文
posted @ 2017-08-19 20:56 xiejunzhao 阅读(590) 评论(0) 推荐(0)