DSA Key Problems

Combination Sum IV

Given distinct positive integers and a target, return the number of ordered sequences of those integers whose sum is the target, allowing values to be reused.