A conveyor belt has packages with given weights. The ship has a maximum capacity cap. Each day, packages are loaded in order without exceeding cap. Return the minimum cap such that all packages ship within days days.
1 ≤ days ≤ weights.length ≤ 5 * 10⁴1 ≤ weights[i] ≤ 500Candidate range: [max(weight), sum(weights)].
15