149. Max Points on a Line
Description
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
Constraints
Approach
Links
GeeksforGeeks
ProgramCreek
YouTube
Examples
Input: [[1, 1], [2, 2], [3, 3]]
Output: 3
Explanation:

Input: [[1, 1], [3, 2], [5, 3], [4, 1], [2, 3], [1, 4]]
Output: 4
Explanation:

Solutions
Follow up
Last updated
Was this helpful?