NeetCode #277LC-1011MediumBinary SearchNC 250
← Back to All Problems#277 · #1011 · Capacity To Ship Packages Within D Days(在 D 天内送达包裹的能力)
📌 Problem Statement & Constraints
A conveyor belt has packages with weights
weights[i] that must be shipped within days days, in the given order. Each day a ship carries packages in order until the weight limit is reached. Return the minimum ship capacity. Constraints: 1 <= days <= weights.length <= 5 * 10^4, 1 <= weights[i] <= 500.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!