112. Path SumEasy
Given the
rootof a binary tree and an integertargetSum, returntrueif the tree has a root-to-leaf path such that adding up all the values along the path equalstargetSum.A leaf is a node with no children.
- Problem
- Solutions
Given the
rootof a binary tree and an integertargetSum, returntrueif the tree has a root-to-leaf path such that adding up all the values along the path equalstargetSum.A leaf is a node with no children.