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

  • GeeksforGeeks

  • ProgramCreek

  • YouTube

Examples

Input: [[1, 1], [2, 2], [3, 3]]

Output: 3

Explanation:

Solutions

Follow up

Last updated

Was this helpful?