public static void hasPathSumHelper(TreeNode node, int sum , int tempSum, ArrayList<Integer> list){
    	if(node == null) return ;
    	tempSum += node.val;
    	if(node.left == null && node.right == null){
    		if(tempSum == sum){
    			return ;
    		}else{
    			return ;
    		}
    	}
    	if(node.right != null){
    		hasPathSumHelper(node.right, sum, tempSum, list);
    	}
    	if(node.left != null){
    		hasPathSumHelper(node.left, sum, tempSum, list);
    	}
    }