Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 1232. Check If It Is a Straight Line
Determine whether all given 2D points are collinear — i.e., lie on a single straight line in the plane by checking that slopes between points are consistent (or equivalently that the cross-product of vectors between points is zero).
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.