摘要: 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 lowes 阅读全文
posted @ 2016-08-21 15:17 LiBlog 阅读(117) 评论(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 any 阅读全文
posted @ 2016-08-21 14:51 LiBlog 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f 阅读全文
posted @ 2016-08-21 13:44 LiBlog 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 296. Best Meeting Point Total Accepted: 6496 Total Submissions: 13313 Difficulty: Hard Total Accepted: 6496 Total Submissions: 13313 Difficulty: Hard 阅读全文
posted @ 2016-08-21 11:46 LiBlog 阅读(206) 评论(0) 推荐(0) 编辑