Pinterest·Machine Learning Engineer·Technical Phone Screen
- You have two arrays representing box heights and warehouse room heights. Boxes can be pushed in from either the left or the right side, and each box must fit within the effective minimum height along its entire push path. What is the maximum number of boxes you can fit in the warehouse?
“The bidirectional part is what got me.”