Tree
lviiii
这个作者很懒,什么都没留下…
展开
-
LeetCode Solutions:Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2].Note: Recursive solution i原创 2014-08-08 09:20:43 · 633 阅读 · 0 评论 -
LeetCode Solutions : Path Sum I & II
Path SumGiven 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 given sum.For example:Given the below binary原创 2014-09-15 16:23:30 · 967 阅读 · 0 评论