[RESOLVED] Two Dimensional ArrayList and finding combinations Questions
Ok here is what i want to do.
I have a one dimensional arraylist holding 100 numbers that are all unique. i would like to loop through all those numbers and group them into sets of 5 which would leave me 20 groups.
but here is the catch, no group can contain the same number twice and each group has to be unique when compared to the other groups.
each group can contain four of the same numbers of another group but not 5.
like so
(MainArray[1] as ArrayList).Add("Hello");
(MainArray[1] as ArrayList).Add("Hello2");
(MainArray[2] as ArrayList).Add("***");
Console.WriteLine(" hello item" + MainArray.IndexOf("***") +"does not exist");
Bookmarks