Search posts, tags, users, and pages
Amit singh
class Solution { public int shipWithinDays(int[] weights, int days) { int left = 0, right = 0; for (int w : weights) { left = Math.max(left, w); // at least the heaviest package right += w; ...
No responses yet.