A conveyor belt has packages with given weights that must be shipped in order, splitting them across at most days days. The ship has a fixed daily capacity. Return the minimum capacity that ships everything within days days.
Input
daysOutput: the minimum ship capacity.
1 2 3 4 5 6 7 8 9 10 5
15
Days: (1 2 3 4 5), (6 7), (8), (9), (10).
3 2 2 4 1 4 3
6
1 2 3 1 1 4
3
Run your code against the sample tests, or Submit to run the full suite.