Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 593. Valid Square
Given four unordered 2D points, determine whether they form a valid square (four equal non-zero side lengths and four right angles). A common check is to analyze pairwise squared distances — there should be exactly two distinct distances with a 4:2 frequency ratio corresponding to equal sides and equal diagonals.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.