会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Long Long Journey
博客园
首页
新随笔
联系
订阅
管理
2017年8月19日
515. Find Largest Value in Each Tree Row 二叉树每一层的最大值
摘要: 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)
公告