Fundamentals/Optimizing Box Weights
← PrevNext →
Given an array of box weights, return the smallest subset (by count) whose total weight is strictly greater than the rest. If sizes tie, prefer the larger total weight. Return the subset sorted ascending.