Back to QuestionsPractice with This Question
Path Sum (Binary Tree)
111.3K views•Asked at Google•
Easy
Question Explain
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`.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.