Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Max Points on a Line
Bookmark
Input
All collinear (3)
Mixed (result=4)
Two points (2)
Two lines
Custom
points
=
[[1,1],[2,2],[3,3]]
slopeMap
best = 0
collinear points through an anchor share the same slope
algo
master
.
io
Step:
Find the most points on one line
0 / 32
Input
All collinear (3)
Mixed (result=4)
Two points (2)
Two lines
Custom
points
=
[[1,1],[2,2],[3,3]]
0 / 32
slopeMap
best = 0
collinear points through an anchor share the same slope
algo
master
.
io
Step:
Find the most points on one line