437 Path Sum III
437. Path Sum III
1. Question
root = [10,5,-3,3,2,null,11,3,-2,null,1], sum = 8
10
/ \
5 -3
/ \ \
3 2 11
/ \ \
3 -2 1
Return 3. The paths that sum to 8 are:
1. 5 ->3
2. 5 ->2 ->1
3. -3 ->112. Implementation
3. Time & Space Complexity
Last updated