Problems / Math & Geometry / Detect Squares
#143 Medium Time O(n) Space O(n) Animated

Detect Squares

Count axis-aligned squares with a given query point.

LeetCode ↗
Approach: Hash Map + Geometry
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps