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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.