Path Sum III
ID: 437; medium
Solution 1 (Java)
Notes
pathSum
returns the number of paths that have their sum equal totargetSum
in the tree rooted atroot
. This include paths that starts atroot
and paths that do not start atroot
.findPath
return the number of paths that have their sum equal totargetSum
, but the paths must start atroot
.
Last updated