Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Roger Cheng
// Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. // Example 1: // Input: [[1,1],[2,2],[3,3]] // Output: 3 // Explanation: // ^ // | // | o // | o // | o // +-------------> // 0 1 2 3 4 // Example 2: // Input: [[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]] // Output: 4 // Explanation: // ^ // | // | o // | o o // | o // | o o // +-------------------> // 0 1 2 3 4 5 6
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
FindMissingNewt
Scemo
1
Dar
Binary search on sorted array
12535
Zahra_matrix
mergesort tree
google
FAK MEN
stackse - search stackoverflow differently
Please log in to post a comment.