1889. Minimum Space Wasted From Packaging
Description
**Input:** packages = [2,3,5], boxes = [[4,8],[2,8]]
**Output:** 6
**Explanation**: It is optimal to choose the first supplier, using two size-4 boxes and one size-8 box.
The total waste is (4-2) + (4-3) + (8-5) = 6.**Input:** packages = [2,3,5], boxes = [[1,4],[2,3],[3,4]]
**Output:** -1
**Explanation:** There is no box that the package of size 5 can fit in.ac
Previous1888. Minimum Number of Flips to Make the Binary String AlternatingNext1890. The Latest Login in 2020
Last updated