Detect Squares — Math & Matrix

Record marked points; for a query point, count groups of marked points that form a grid-aligned square with it, repeats counted separately.

Math & Matrix · Medium

More in Math & Matrix

All algorithm problems