According to the book changes (#144)

Changed the name of the variable according to the book
This commit is contained in:
Alexander Danilchenko
2019-10-30 23:31:21 +02:00
committed by Aditya Bhargava
parent fb81c11ca9
commit 03db2855d6

View File

@@ -13,8 +13,8 @@ final_stations = set()
while states_needed:
best_station = None
states_covered = set()
for station, states in stations.items():
covered = states_needed & states
for station, states_for_station in stations.items():
covered = states_needed & states_for_station
if len(covered) > len(states_covered):
best_station = station
states_covered = covered