4
public List<List<Integer>> combinationSum3(int k, int n) {5
List<List<Integer>> ans = new ArrayList<List<Integer>>();6
// int[] arr = new int{1,2,3,4,5,6,7,8,9};7
List<Integer> ds = new ArrayList<>();8
helper(1, n, k, ds, ans);12
private static void helper(int i, int tar, int k, List<Integer> ds, List<List<Integer>> ans) {16
ans.add(new ArrayList<>(ds));20
if (tar == 0) return; // bcz if k is not zero and tar is zero then no possible valid combination27
helper(i + 1, tar - i, k - 1, ds, ans);28
ds.remove(ds.size() - 1);31
helper(i + 1, tar, k, ds, ans);