I am currently using two lists. Such as:
available_points = [[2,3], [4,5], [1,2], [6,8], [5,9], [51,35]]
solution = [[3,5], [2,1]]
Now I want to pop a point in available_points and append it to solution for which the sum of euclidean distances from that point, to all points in the solution is the greatest.
So I want the output as:
solution = [[3,5], [2,1], [51,35]]