Toggle navigation
beta
Blog
Login
Given a couple of coordinates on a 2D plane, Write a method to find the maximum number coordinates that can form the same straight line.
Examples:
calPoints({(-3,5), (-5,-8), (6,-3)}) ==> 2
Log in to see all hints.
Quick hint to get things rolling
The interview prep tool you'll fall in love with!
Request
FREE
Beta Invite
public static int calPoints(Coordinates [] points){ }
Log in to Run your code against the test cases and check the answer.
This Coding Interview Question is available with an answer in the following programming languages :