Path Sum 2

Preview

Given the root of a binary tree and an integer target, write a recursive function to find all root-to-leaf paths where the sum of all the values along the path sum to target.

Sign in to read the full chapter.

Checking access…