Preview
Given the root of a binary tree and an integer target, write a recursive function to determine if the tree has a root-to-leaf path where all the values along that path sum to the target.
Sign in to read the full chapter.
Checking access…
Preview
Given the root of a binary tree and an integer target, write a recursive function to determine if the tree has a root-to-leaf path where all the values along that path sum to the target.
Sign in to read the full chapter.
Checking access…