Skip to content

Commit 71aa718

Browse files
committed
fix typo failures
1 parent dba7712 commit 71aa718

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

greedy_methods/gale_shapley_stable_matching.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
class GaleShapley:
36-
"""Implementation of the Gale-Shapley algorithem
36+
"""Implementation of the Gale-Shapley algorithm
3737
3838
takes it 2 preference list as a 2D array of ints. First one is the
3939
proposing side.
@@ -91,8 +91,7 @@ def find_matches(
9191
cur_proposer = next(
9292
prop for prop, rec in matches.items() if rec == receiver
9393
)
94-
95-
# give receiver new proposer match only if it preferes new over old
94+
# give receiver new proposer match only if it prefers new over old
9695
if receivers_preferences[receiver].index(proposer) < receivers_preferences[
9796
receiver
9897
].index(cur_proposer):

0 commit comments

Comments
 (0)