There is a group of n members, and a list of crimes that can be committed. For each crime at index i, group[i] members are required to participate, and it generates a profit of profit[i].
A scheme is a subset of crimes. A scheme is valid and profitable if the total number of members required does not exceed n, and the total profit generated is at least minProfit.
Return the total number of profitable schemes. Since the answer may be large, return it modulo
Constraints:
n
minProfit
group.length
group[i]
profit.length group.length
profit[i]
There is a group of n members, and a list of crimes that can be committed. For each crime at index i, group[i] members are required to participate, and it generates a profit of profit[i].
A scheme is a subset of crimes. A scheme is valid and profitable if the total number of members required does not exceed n, and the total profit generated is at least minProfit.
Return the total number of profitable schemes. Since the answer may be large, return it modulo
Constraints:
n
minProfit
group.length
group[i]
profit.length group.length
profit[i]