来吧 跟我一起玩吧# Joke - 肚皮舞运动
h*o
1 楼
leetcode 上 path sum problem:
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.
卡在这儿:
input output expected
{1,2}, 1 true false
是不是这种情况:
1
\
2
输出 true 有什么问题吗
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.
卡在这儿:
input output expected
{1,2}, 1 true false
是不是这种情况:
1
\
2
输出 true 有什么问题吗