Valid Square
Medium
Geometry & Coordinates
Given four points in 2D, print true if they form a square, otherwise false. The points are given in no particular order.
Constraints
-10^4 <= x, y <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.