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:
|
while states_needed:
|
||||||
best_station = None
|
best_station = None
|
||||||
states_covered = set()
|
states_covered = set()
|
||||||
for station, states in stations.items():
|
for station, states_for_station in stations.items():
|
||||||
covered = states_needed & states
|
covered = states_needed & states_for_station
|
||||||
if len(covered) > len(states_covered):
|
if len(covered) > len(states_covered):
|
||||||
best_station = station
|
best_station = station
|
||||||
states_covered = covered
|
states_covered = covered
|
||||||
|
|||||||
Reference in New Issue
Block a user