public void tryEachNode(TreeNode node, int num) {
		num = num * 10 + node.val;
		if(node.left == null && node.right == null) {
			res += num;
		} else {
			if(node.left != null) {
				tryEachNode(node.left, num);
			}
			if(node.right != null) {
				tryEachNode(node.right, num);
			}
		}
	}