Place Small Rectangles

Asked at IXL · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026

Write a function to randomly place a set of small rectangles inside a large rectangle, ensuring there is no overlap between the small rectangles. The width and height of each small rectangle are known.

Loading the problem…