diff --git a/08_greedy_algorithms/python/01_set_covering.py b/08_greedy_algorithms/python/01_set_covering.py index bbd1b5ff..1c77d41f 100644 --- a/08_greedy_algorithms/python/01_set_covering.py +++ b/08_greedy_algorithms/python/01_set_covering.py @@ -13,8 +13,8 @@ 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