static void pathSumHelper(TreeNode c, int s, List<Integer>list, List<List<Integer>> rel) {
		s-=c.val;
		list.add(c.val);
		if (s==0&&c.left==null&&c.right==null){
			rel.add(list);
			return;
		}
		if (c.left!=null)
			pathSumHelper(c.left, s, new ArrayList<>(list), rel);
		if (c.right!=null)
			pathSumHelper(c.right, s, new ArrayList<>(list), rel);
	}