Stable marriage problem: Difference between revisions

m
(→‎{{header|Groovy}}: new solution)
Line 856:
 
=={{header|Groovy}}==
{{trans|Java}} (more or less) Uses explicit maps for preference ranking rather than list position. Uses Man and Woman enumerated types instead of string names, in order to usetake advantage of compile time type and constant checking to help keep the playas straight without a scorecard.
 
"Stable Matching" Solution:
Anonymous user