← All problems

Capacity To Ship Packages Within D Days

Medium searchinggreedy LeetCode ↗
Minimum ship capacity to ship all weights within D days (order preserved).

Hints (0/3 revealed)

Log in to reveal hints progressively.

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.