Most points on one line
Given a list of points [x, y] with integer coordinates, return the largest number of them that lie on one straight line. A point may appear more than once: every copy counts, and the copies of a point lie on every line through it. An empty list gives 0.
For n points, aim for O(n²).
Examples
most_on_a_line([[1,1],[2,2],[3,3]])→3most_on_a_line([[0,0],[2,1],[4,2],[1,3],[3,0],[6,3]])→4most_on_a_line([[1,1],[1,1],[2,3]])→3