摘要: 阅读全文
posted @ 2018-03-01 13:16 davidnyc 阅读(85) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/binary-tree-longest-consecutive-sequence/description/Given a binary tree, find the length of the longest consecutive sequence path.The path refers to any sequence of node... 阅读全文
posted @ 2018-03-01 10:21 davidnyc 阅读(102) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/path-sum-ii/description/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 @ 2018-03-01 02:37 davidnyc 阅读(141) 评论(0) 推荐(0)