The smallest truck capacity

A code exercise of about 25 minutes: read the statement, solve «The smallest truck capacity» in the browser and get a review like in a real interview.

Code · 25 min
Loading…

Statement

Write shipCapacity(weights, days): the parcels ship in the order of weights, one truck a day, without splitting a parcel. Return the smallest truck capacity that ships everything within days days.