Available question text
Choose one supplier whose infinite-supply box sizes must each be at least as large as the package they hold, and minimize the total wasted space (sum of box size − package size) for all packages or return -1 if any package is too large. Core challenge: for each supplier decide feasibility and compute minimal waste efficiently by sorting packages and box sizes and using prefix sums + binary searches to group packages into the smallest adequate boxes.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1889. Minimum Space Wasted From Packaging
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source