There is an exam that contains n different types of questions. You are given an integer target and a types where types[i]
Return the total number of distinct ways to score exactly target points in the exam. Since the final answer may be very large, return it modulo
Note: Two ways are considered different if they differ in the number of questions solved for at least one type.
Constraints:
target
n types.length
n
types[i].length
There is an exam that contains n different types of questions. You are given an integer target and a types where types[i]
Return the total number of distinct ways to score exactly target points in the exam. Since the final answer may be very large, return it modulo
Note: Two ways are considered different if they differ in the number of questions solved for at least one type.
Constraints:
target
n types.length
n
types[i].length