According to the book changes (#144)
Changed the name of the variable according to the book
This commit is contained in:
committed by
Aditya Bhargava
parent
fb81c11ca9
commit
03db2855d6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user