Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.