Minimum Ship Capacity Within D Days

Problem

Given an array of package weights weights and a number of days D, a ship makes at most one trip per day. The total weight on each trip must not exceed its capacity, and packages cannot ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: