Find the Number of Squares Formed by Given Points

Given 16 points on a plane arranged in a 4x4 matrix, you need to find the total number of squares that can be formed using these points. Assume the coordinates of the points allow them to form squares...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: