Skip to interview prep
Apexed

Given boxes with height, width and depth (rotations allowed, unlimited copies), build the tallest stack where each box's base is strictly smaller in both dimensions than the box below it.

Content review

Report an error

Not yet reviewed

Data structures & algorithms357 of 395

HardDynamic programming

Technical

This is ungraded practice. Run your solution and compare it with the model answer. Your drafts are saved in this browser.

Tab indents · Ctrl/⌘ + Enter runs · Esc then Tab leaves the editor

Getting your code editor ready…

Getting your answer ready…

Given boxes with height, width and depth (rotations allowed, unlimited copies), build the tallest stack where each box's base is strictly smaller in both dimens