medium10 pts · first answer countssorting-and-searching
Minimum truck capacity in D days
Packages [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] must ship in order within 5 days. Each day you load packages until the next one would go over capacity. What is the smallest capacity that works?
Discussion 0
Join free to post in the discussion.
Related questions
- Bubble sort best case with early exitBackend Developer
- What a stable sort meansBackend Developer
- Merge sort time in every caseBackend Developer
- Best simple sort for nearly sorted dataBackend Developer
- Swaps made by selection sortBackend Developer
- What in-place sorting meansBackend Developer
- Quick sort worst-case timeBackend Developer
- JavaScript default sort on numbersBackend Developer