Path Sum II

Title: Path Sum II Source: leetcode.com

Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.

sum = 22

return

Python solution

Java solution

Rate this post

Leave a Reply