Count the Number of Squares

Given a subset of points of a rectangular grid, count the number of squares of any size and at any angle that can be drawn using those points as vertices.

Loading details...

DownloadOpen in Cloud

Categories: ArraysMathematics

Contributed by: Christian Woods and Greg Hurst