Find the Largest Area of Square Inside Two Rectangles
Intersect every pair of rectangles; the overlap is a box, and its shorter side is the largest square that fits.
Intersect every pair of rectangles; the overlap is a box, and its shorter side is the largest square that fits.