← All problems
Capacity To Ship Packages Within D Days
Minimum ship capacity to ship all weights within D days (order preserved).
Complexity
Time O(n log sum), Space O(1)
Common pitfalls
- Lower bound below max single weight
- Not preserving order in feasibility
Your solution
Log in to save your code and track progress.