- 博客(3)
- 收藏
- 关注
原创 404. Sum of Left Leaves
1.题目描述Find the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 15 7There are two left leaves in the binary tree, with values 9 and 15 respectively. Return...
2018-07-04 15:24:26 126
原创 257. Binary Tree Paths
1.问题描述Given a binary tree, return all root-to-leaf paths.Note: A leaf is a node with no children.Example:Input:1 / \2 3 \ 5Output: ["1->2->5", "1->3"]Explanation: All r
2018-07-03 15:31:42 106
原创 112. Path Sum
1.题目描述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 given sum.Note: A leaf is a node with no children.Ex...
2018-07-02 20:45:55 139
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人