Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 43cec01

Browse files
refactor 437
1 parent a6220b1 commit 43cec01

File tree

1 file changed

+0
-30
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-30
lines changed

src/main/java/com/fishercoder/solutions/_437.java

-30
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,6 @@
22

33
import com.fishercoder.common.classes.TreeNode;
44

5-
/**
6-
* 437. Path Sum III
7-
*
8-
* You are given a binary tree in which each node contains an integer value.
9-
10-
Find the number of paths that sum to a given value.
11-
12-
The path does not need to start or end at the root or a leaf, but it must go downwards (traveling only from parent nodes to child nodes).
13-
14-
The tree has no more than 1,000 nodes and the values are in the range -1,000,000 to 1,000,000.
15-
16-
Example:
17-
18-
root = [10,5,-3,3,2,null,11,3,-2,null,1], sum = 8
19-
20-
10
21-
/ \
22-
5 -3
23-
/ \ \
24-
3 2 11
25-
/ \ \
26-
3 -2 1
27-
28-
Return 3. The paths that sum to 8 are:
29-
30-
1. 5 -> 3
31-
2. 5 -> 2 -> 1
32-
3. -3 -> 11
33-
*/
34-
355
public class _437 {
366

377
public static class Solution1 {

0 commit comments

Comments
 (0)