Tap here to switch tabs
Problem
Submissions

Problem: Combination Sum IV

Try to solve the Combination Sum IV problem.

Statement

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 target are counted as distinct combinations.

Constraints:

  • 1≤1 \leq nums.length ≤200\leq 200

  • 1≤1 \leq nums[i] ≤1000\leq 1000

  • All the elements of nums are unique.

  • 1≤1 \leq target ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Combination Sum IV

Try to solve the Combination Sum IV problem.

Statement

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 target are counted as distinct combinations.

Constraints:

  • 1≤1 \leq nums.length ≤200\leq 200

  • 1≤1 \leq nums[i] ≤1000\leq 1000

  • All the elements of nums are unique.

  • 1≤1 \leq target ≤1000\leq 1000