← Samsung questions

Maximum Height Box Stacking

Filed under Samsung

Given N types of 3D blocks, find the maximum height achievable by stacking them. A block can be placed on another only if both base dimensions of the upper block are strictly smaller than the lower…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.