Given an array of distinct integers nums and an integer target, return the total number of possible combinations that sum up to target.
Note: Different ordered sequences of integers that sum to
targetare counted as distinct combinations.
Constraints:
nums.length
nums[i]
All the elements of nums are unique.
target
Given an array of distinct integers nums and an integer target, return the total number of possible combinations that sum up to target.
Note: Different ordered sequences of integers that sum to
targetare counted as distinct combinations.
Constraints:
nums.length
nums[i]
All the elements of nums are unique.
target