437. Path Sum III
# Easy
Very hard. Use two recursive.
dfs(root, sum)
return the count of path from root to current node.
sumPath(root, sum)
return the count of path from any node to any node, including dfs(root, sum)
's result.
Solution vedio link: https://www.youtube.com/watch?v=NTyOEYYyv-o
Last updated