lundi 19 avril 2021

C++: How to generate pairs each weeks without repetition of partners

C++ Language: Pair generator without repeats

I have a list of names and I need to pair each of them with another person every week. The idea is that the person should never be paired with someone who they already worked with in the previous weeks.For the layout of the output, I am thinking generating all the pairs till one person paired up with everyone on the list. Any help would be highly appreciated.




Aucun commentaire:

Enregistrer un commentaire