Aavakaaya
Pilla Bewarse Username: Aavakaaya
Post Number: 500 Registered: 04-2004 Posted From: 195.220.151.50
Rating:N/A Votes: 0(Vote!) | Posted on Monday, May 09, 2005 - 1:49 pm: | |
Can someone help me in writing a recursive function to slove the following problem I have 3 sets of data.. [1,2] [3,4] [5,6] I want all the combinations of the members of each set with the members of the other sets. Like... [1,3,5] [1,4,5] [1,4,5] [1,4,6] [2,3,5] [2,4,5] [2,4,5] [2,4,6] and so on.. Actually the number of sets and the number of members in each set may vary. Thats why I need a recursive function. Can some one help me out. Thanks in advance. |