Path Sum III
ID: 437; medium
Last updated
ID: 437; medium
Last updated
pathSum
returns the number of paths that have their sum equal to targetSum
in the tree rooted at root
. This include paths that starts at root
and paths that do not start at root
.
findPath
return the number of paths that have their sum equal to targetSum
, but the paths must start at root
.