Problem 2001 · Medium

Number of Pairs of Interchangeable Rectangles

Count pairs of rectangles whose width-to-height ratio is the same. The visual reduces each ratio to a simple fraction and groups equal ones.

Open the interactive visualisation