How to get unique combination of values from different arraylists contained in a single mother arraylist? [modified]
-
I have one mother arraylist which contains no. of arraylist whose count is dynamic. All childArrayList contains string values. I have to get all unique combinations for all the values in all arraylist. If motherArrayList contains 4 arraylist, then length of combination string should be 4.
modified on Wednesday, April 1, 2009 2:59 AM
-
I have one mother arraylist which contains no. of arraylist whose count is dynamic. All childArrayList contains string values. I have to get all unique combinations for all the values in all arraylist. If motherArrayList contains 4 arraylist, then length of combination string should be 4.
modified on Wednesday, April 1, 2009 2:59 AM
Use a random number generator to generate positions out of the number of elements remaining, and hten each time, pull out that one value and put it in your new, random list.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )