ID | Title | Difficulty | |
---|---|---|---|
Loading... |
149. Max Points on a Line
Hard
LeetCode
Array, Hash Table, Math, Geometry
Problem
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.
Example 1:
Input: points = [[1,1],[2,2],[3,3]]
Output: 3
Example 2:
Input: points = [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]
Output: 4
Code
按 <- 键看上一题!
148. Sort List
按 -> 键看下一题!
150. Evaluate Reverse Polish Notation