Skip to content

Commit 03db285

Browse files
OleksandrDanylchenkoegonSchiele
authored andcommitted
According to the book changes (egonSchiele#144)
Changed the name of the variable according to the book
1 parent fb81c11 commit 03db285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

08_greedy_algorithms/python/01_set_covering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
while states_needed:
1414
best_station = None
1515
states_covered = set()
16-
for station, states in stations.items():
17-
covered = states_needed & states
16+
for station, states_for_station in stations.items():
17+
covered = states_needed & states_for_station
1818
if len(covered) > len(states_covered):
1919
best_station = station
2020
states_covered = covered

0 commit comments

Comments
 (0)