Got a question which gave three values
int[] quantity, int num, int k
A truck could only fit a capacity of num and one truck cannot have the same product more than k times. Each value in quantity represents and individual product. We were asked to return the minimum number of trucks needed in a scenario. Is there a leetcode/hackerrank problem like this already? I was unable to find something just cause I wanted to practice it on my own
Example
quantity = [2, 4]
num = 3
k = 2
We would need two trucks total. Each truck would have one of the first product and two of the second product.