摘要: QuestionGiven 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 ... 阅读全文
posted @ 2015-09-30 23:24 树獭君 阅读(121) 评论(0) 推荐(0)
摘要: QuestionGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the give... 阅读全文
posted @ 2015-09-30 22:52 树獭君 阅读(156) 评论(0) 推荐(0)
摘要: QuestionGiven a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths a... 阅读全文
posted @ 2015-09-30 05:00 树獭君 阅读(190) 评论(0) 推荐(0)