Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1564. Put Boxes Into the Warehouse I
Given arrays of box heights and warehouse room heights, maximize how many boxes can be placed knowing a box can only reach a room if its height is ≤ the minimum height along the path to that room (so each room's effective capacity is its prefix minimum). The core challenge is a greedy matching problem using prefix minima on warehouse heights and sorting/two-pointer placement of boxes.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.