Put Boxes Into the Warehouse I

You are given two arrays of positive integers, boxes and warehouse, representing the heights of boxes and warehouse rooms. The warehouse rooms are indexed from left to right, and all boxes must enter through the leftmost room.

Check more interview questions and experiences about Pinterest

Please log in to view interview question details