Class Solution


  • public class Solution
    extends Object
    • Constructor Detail

      • Solution

        public Solution()
    • Method Detail

      • hasPathSum

        public boolean hasPathSum​(TreeNode root,
                                  int targetSum)
      • DFS

        private boolean DFS​(TreeNode node,
                            int targetsum,
                            int currentsum)