会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
阿飞哦
博客园
首页
新随笔
联系
订阅
管理
2019年12月7日
<Tree> 298 250 366 199(高频) 98(高频)
摘要: 298. Binary Tree Longest Consecutive Sequence 先序遍历,根左右。如果该节点的 value == 父节点value + 1, 则长度+1; 否则重置为1。 class Solution { private int res = 0; public int l
阅读全文
posted @ 2019-12-07 16:16 阿飞哦
阅读(182)
评论(0)
推荐(0)
编辑
公告