摘要: Path Sum 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 @ 2015-01-22 22:01 hitkb 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 随笔一记,留做重温!Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 ... 阅读全文
posted @ 2015-01-22 17:10 hitkb 阅读(113) 评论(0) 推荐(0) 编辑