
树
AgoniAngel
我的bug早已饥渴难耐
展开
-
LeetCode 298 二叉树最长连续序列
【题目】 给定一个二叉树,求最长连续序列的长度。 连续序列是一条父节点到子节点路径,路径上的数连续递增(子节点的数比父节点大1)。 Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some ...原创 2020-03-22 11:42:44 · 760 阅读 · 0 评论 -
LeetCode 156:上下翻转二叉树
题目 Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it upside down and turn it into a tree where the or...原创 2019-10-11 21:53:59 · 1093 阅读 · 1 评论