just thought of an algorithm question
knowing the length and width of a rectangle and the number of circles, what is the largest proportion of the area of the circle in it?
for example, a rectangle of 10 to 10, if the number of circles is one, then the diameter of the circle should be 10. If the number of circles is 2, then the diameter of the two circles may be 10, the other is the corner of the large circle, or both diameters are 5 or other, but the area ratio of the inner circle is the highest, so the diameter of the two circles should be unique, the same three circles and four circles. Or if the aspect ratio of the rectangle is 3:2, and so on, what should the circle look like inside?
function
//h:w:count:
function fn(h,w,count) {
}