摘要: Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 阅读全文
posted @ 2016-07-31 16:33 gremount 阅读(109) 评论(0) 推荐(0)
摘要: 112题目如下: Given 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 giv 阅读全文
posted @ 2016-07-31 15:54 gremount 阅读(156) 评论(0) 推荐(0)