Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers. Note: All numbers will be positive integers. The solution set must not cont…
public class Solution { public IList<IList<int>> CombinationSum3(int k, int n) { , , , , , , , , }; var result = new List<IList<int>>(); helper(result, ); return result; } public void helper(List<IList<int>> result, Lis…