上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页
摘要: 题目: Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree. Especially, this path can be either increasing or dec 阅读全文
posted @ 2017-05-11 01:39 panini 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example:Given the below binary tree and 阅读全文
posted @ 2017-05-10 11:24 panini 阅读(117) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.The lowest common ancestor is the node 阅读全文
posted @ 2017-05-10 10:55 panini 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven the root and two nodes in a Binary Tree. Find the lowest common ancestor(LCA) of the two nodes.The lowest common ancestor is the node 阅读全文
posted @ 2017-05-10 10:35 panini 阅读(1382) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains 阅读全文
posted @ 2017-05-10 10:00 panini 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The l 阅读全文
posted @ 2017-05-10 05:53 panini 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: click to show hints. Hints: If y 阅读全文
posted @ 2017-05-09 10:51 panini 阅读(171) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a binary tree, find the subtree with maximum average. Return the root of the subtree.NoticeLintCode will print the subtree which root 阅读全文
posted @ 2017-05-09 06:21 panini 阅读(2000) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a binary tree, find the subtree with minimum sum. Return the root of the subtree.NoticeLintCode will print the subtree which root is 阅读全文
posted @ 2017-05-09 06:18 panini 阅读(778) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find the length of the longest consecutive sequence path. The path refers to any sequence of nodes from some starting node to 阅读全文
posted @ 2017-05-09 06:06 panini 阅读(161) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页