I am trying to help someone write a program that I thought would be easy, but of course it never was :)
I try to take a list of classes (usually between 10-20 students) and effectively uniquely combine each classmate with another to create unique groups. Therefore, in a class of 10 people you can have 9 groups.
He should be able to handle an odd number of students, adding to my confusion.
I looked at it in Java, but it is flexible. Any ideas on an algorithmic way to guarantee a) a non-infinite loop (ending in 2 people who were already partners) and b) I strive for more efficient time than space, as the class size will be small!
Thank!
Austin
source
share