Skip to content

Commit 0a38701

Browse files
Butt4cak3jiegillet
authored andcommitted
Fixed a typo in the Julia implementation for Stable Marriage (#477)
1 parent c4cd16f commit 0a38701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contents/stable_marriage_problem/code/julia/stable_marriage.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ prefers(prefs, person, first, second) =
2121

2222
isfree(person, pairs) = !haskey(pairs, person)
2323

24-
function galeshapely(men::Preferences, women::Preferences)
24+
function galeshapley(men::Preferences, women::Preferences)
2525
mentowomen = Dict{String,String}()
2626
womentomen = Dict{String,String}()
2727
while true
@@ -62,7 +62,7 @@ end
6262

6363
function main()
6464
men, women = genpreferences(mnames, wnames)
65-
mentowomen, womentomen = galeshapely(men, women)
65+
mentowomen, womentomen = galeshapley(men, women)
6666
println(mentowomen)
6767
println(isstable(men, women, mentowomen, womentomen) ? "Stable" : "Unstable")
6868
end

0 commit comments

Comments
 (0)