Problem 593 · Medium

Valid Square

Decide whether four unlabeled points can be arranged as a square with no degenerate corners. The visual compares all six pairwise distances and checks that the shortest ones match and the diagonals are larger by the right ratio.

Open the interactive visualisation