Points

You will be given two-dimensional coordinates (x,y)(x, y)(x,y) of NNN points. Your task is to identify KKK points from them that are lying in a straight line (This line should contain exactly KKK points). It is guaranteed that all points are unique and there is exactly one such line exists in which exactly KKK points lie.


This is a companion discussion topic for the original entry at https://toph.co/p/points