Max Points on a Line at Sprinklr
Hard30.2% acceptance
This problem has 50.0% frequency at Sprinklr.
Problem Description
Given an array of `points` where `points[i] = [xi, yi]` represents a point on the **X-Y** plane, return _the maximum number of points that lie on the same straight line_.
Read full problem and hintsTopics
Also asked at 15 companies
More Sprinklr Questions
Create Components With Same ValueHardMinimum Edge Weight Equilibrium Queries in a TreeHardNumber of Great PartitionsHardApply Operations on Array to Maximize Sum of SquaresHardNext Greater Numerically Balanced NumberMedium
View all Sprinklr questions