Available question text
Given box sizes and a sequence of warehouse slot heights, maximize how many boxes can be placed into the slots under the constraint that a box must fit the slot height (you may reorder boxes). The core challenge is to preprocess the warehouse into effective capacities (prefix minima) and greedily match sorted boxes to available slots, often solved with sorting and two-pointer/greedy techniques.
Related questions
Continue with questions that share topics or the same question type.
- Put Boxes Into the Warehouse I
Coding · Array · Greedy · Sorting
- Apple Redistribution into Boxes
Coding
- How Many Apples Can You Put into the Basket
Coding
- Building Boxes
Coding · Binary Search · Greedy · Math
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
Pinterest
Leetcode 1580. Put Boxes Into the Warehouse II
Reported Oct 1, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source