We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeeb329 commit 284f661Copy full SHA for 284f661
smp.py
@@ -31,7 +31,8 @@ def proposeTo(self, other):
31
def choose(self, choice):
32
"""
33
Say 'maybe' to other Person. Say 'no' to everyone else. Clears the set
34
- of proposals, and removes self from the prefs of everyone that was rejected.
+ of proposals, and removes self from the available options for everyone
35
+ that was rejected.
36
37
self.choice = choice
38
choice.choice = self
@@ -144,7 +145,8 @@ def randomPreferences(n):
144
145
Gets a random ordering of preferences for each boy and girl in an instance
146
of the stable marriage problem for given n.
147
- Due to the naming of the girls, n must be <= 26.
148
+ Args:
149
+ n: the number of boys and girls. Must be <= 26.
150
151
if n > 26: raise ValueError()
152
0 commit comments