Given the area, A, of a star polygon formed by the rectangle, with dimensions L×2L, and four triangles, with height h from their bases to the vertices, find the rectangles that have the same area, A, and cover the distance between opposite vertices (cf. figure below).
Given (A, L), return the 2x2 matrix M, where
  • the first row returns the dimensions, y1×y2, of the rectangle that covers the minimum distance (cf. left figure);
  • the second row returns the dimensions, z1×z2, of the rectangle that covers the maximum distance (cf. right figure).
input: (A, L)
output: M = [y1 y2; z1 z2]

Solution Stats

14 Solutions

11 Solvers

Last Solution submitted on May 24, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...