Given an array of distinct integers candidates and a target, return all unique combinations that sum to target. Each number can be used unlimited times.
Example: For [2,3,6,7] and target , return [[2,2,3], [7]].
Given an array of distinct integers candidates and a target, return all unique combinations that sum to target. Each number can be used unlimited times.
Example: For [2,3,6,7] and target , return [[2,2,3], [7]].