Neville Mehta

Greenhorn
+ Follow
since Feb 19, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Neville Mehta

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
20 years ago