package leetcode;

/**
 * https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/
 */
public class Problem1014 {
    public int shipWithinDays(int[] weights, int D) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1014 prob = new Problem1014();
        System.out.println(prob.shipWithinDays(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, 5)); // 15
        System.out.println(prob.shipWithinDays(new int[]{3, 2, 2, 4, 1, 4}, 3)); // 6
        System.out.println(prob.shipWithinDays(new int[]{1, 2, 3, 1, 1}, 4)); // 3
    }
}

@@ -407,16 +407,216 @@
 ; // 15%0A
+//        System.out.println(prob.shipWithinDays(new int%5B%5D%7B1, 2, 3, 10, 5, 6, 7, 8, 9%7D, 5)); // 15%0A//        System.out.println(prob.shipWithinDays(new int%5B%5D%7B1, 2, 10, 3, 5, 6, 7, 8, 9%7D, 5)); // 13%0A//
         
@@ -693,16 +693,18 @@
 ); // 6%0A
+//
         

Update problem 1014