Hi,
Could someone please refer me to some resource (or be nice enough to explain me here itself
), how we could generate unique combinations of a given set of objects (strings,integers.. whatever).
---------------------------------------
Say for eg. here is the set initially
A B C
Now, we can have 3 (yes... 3C2) number of combinations if we take 2 at a time.
Those 3 would be
A B
B C
A C
---------------------------------------
A generic algo would be more helpful than an algo in java however even if someone posts an algo in java i could try and understand it myself. If you would be posting code, i request you to please send some little explaination if possible.
Thanks in advance
Neville