Set distance of the first solution to zero

This commit is contained in:
coolneng 2021-04-11 22:30:28 +02:00
parent 2fe874e733
commit f534521410
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ def get_first_solution(n, data):
)
furthest_index = distance_sum["distance"].idxmax()
furthest_row = distance_sum.iloc[furthest_index]
furthest_row["distance"] = 0
return furthest_row