Back to Question
Path Sum (Binary Tree)
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
Click "Start Speaking" and answer the question naturally.