0
Online dating challenge !
You want to match a groupe of men ("Brad","John","Chrid","Tom","Zack","Moe","Yim","Tim","Eric","Don") with a group of women ("Olivia","Jenny","Michelle","Kate","Jude","Sonia","Yin","Zoe","Amy","Nat"). Each man/woman must be part of one couple only. You need to respect the preferences expressed in the matrix in the next comment where each line represents a man (in the order of the list above) and you have a '1' whenever this man is ok to match with the women, or '0' else (women in the order of the list above).
8 ответов
+ 4
😐😐😐
+ 1
## O J M K J S Y Z A N
[ 0,0,1,0,1,0,0,1,0,0], # Brad
[ 1,1,0,0,0,1,1,0,1,0], # John
[ 0,0,0,1,1,0,0,1,0,1], # Chris
[ 0,1,1,0,0,0,1,0,0,0], # Tom
[ 0,0,1,0,0,1,0,1,1,1], # Zack
[ 1,0,1,0,1,0,0,1,0,0], # Moe
[ 0,0,1,0,0,0,0,0,1,1], # Yim
[ 0,1,1,0,0,1,0,0,1,0], # Tim
[ 0,0,1,1,1,0,1,0,0,0], # Eric
[ 1,0,0,0,1,0,0,1,0,1] # Don
0
@jamie You can reverse the notion of preference of course !. And you dont even need to assume a gender.
0
@jamie This is a fair question ! Now stop teasing & start coding :-)