4 ms·
The 88 in the output is the area of the smallest square (an 8x11 square)
by tomerico 16y ago
The 88 in the output is the area of the smallest square (an 8x11 square)
- vessenes 16y agoAh, thanks, I thought it was the dimensions.
- harpastum 16y agoI'm actually not sure what the 'correct' answer is to their given problem. The problem statement says "Files can be rotated 90° if it helps...any files sharing dimensions should be considered identical/interchangeable." That could mean that 3x4 and 4x3 are identical boxes. The final area would still be the same (88), but the given ascii drawing output would be incorrect.
- deleted 16y ago[deleted]
- tbrownaw 16y ago"""Bonus points if you can draw pictures of the winning configurations along the way. While drawing pictures, any files sharing dimensions should be considered identical/interchangeable.""" Note in the sample output they have 4 "distinct" configurations for the minimum size (really they're all the same, just rotated). If the two small boxes weren't identical/interchangeable, there would be 8 configurations (4 pairs of two, and each pair would be indistinguishable from eachother without labeling the small boxes A and B).