Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Pages:
1-
Squares
1
Name:
Jeff Atwood
2011-03-20 18:43
I have an array of N pictures, each with dimensions WxH. I want to display them in a rectangular matrix that is as close to a square as possible. How do I calculate the number of rows and columns?
2
Name:
Anonymous
2011-03-20 18:51
Hi Jeff,
I've summed up my answers to your question in this post. I'm sorry that it's a bit lengthy.
(
Post truncated.
)
3
Name:
Anonymous
2011-03-21 1:45
>>1
Smells like packing problem to me.
http://en.wikipedia.org/wiki/Packing_problem
4
Name:
Anonymous
2011-03-21 10:08
Forget it, it's NP-complete.
Don't change these.
Name:
Email:
Entire Thread
Thread List