Problem 2013 · Medium

Detect Squares

Store points and count the axis-aligned squares that can be formed with a query point as one corner. The visual draws the candidate squares around the query point.

Open the interactive visualisation