Package leetcode.path_sum
Class Solution
- java.lang.Object
-
- leetcode.path_sum.Solution
-
public class Solution extends Object
-
-
Constructor Summary
Constructors Constructor Description Solution()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
DFS(TreeNode node, int targetsum, int currentsum)
boolean
hasPathSum(TreeNode root, int targetSum)
-