摘要: 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) 编辑