Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Consider a DFS traversal of the tree. You can keep track of the current path sum from root to this node, and you can also use DFS to return the maximum value of any path from this node to the leaf. This will tell you if this node is insufficient.