diff --git a/08_greedy_algorithms/python/01_set_covering.py b/08_greedy_algorithms/python/01_set_covering.py index bbd1b5f..1c77d41 100644 --- a/08_greedy_algorithms/python/01_set_covering.py +++ b/08_greedy_algorithms/python/01_set_covering.py @@ -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