I have N keywords which can be mapped as follows:
1,2,3,4----/5,6,7,8----/9,10,11,12----/--------
From the above line i should be able to map 1 to 5,2 to 6, 3 to 7, so on. I should also be able to map 1 to 9, 1 to 10, 1 to 11, 1 to 12 so on like that i should be able to map N number of combinations. I should make this generic in such a way that it should work with N number of combinations. Please tell me the logic how i can do this.
Thanks & Regards,
P.Karthik
Loading

VulpesRank #55 · 29.2K reputationPosted Aug 29, 2011, 4:24 AM EDT
Here's the same code in C++/CLI:
VulpesRank #55 · 29.2K reputationPosted Aug 29, 2011, 4:14 AM EDT
Karthik AgarwalRank #2,270 · 620 reputationPosted Aug 29, 2011, 5:13 AM EDT
Great, done vulpes its working fine. Thanks for the help. Anyways your amazing.
Thanks & Regards,
Karthik
Karthik AgarwalRank #2,270 · 620 reputationPosted Sep 29, 2011, 11:40 PM EDT
This is not of equal length Vulpes and one more addition to me made for the above combination is:
the line looks like follows:
1. String^ s = " 1,2,3,4,5,6/7/9/13/XX/YY/'asas' ";
or
2. String^ s = "1,2,3,4/5,6,7,8/9,10,11,12/13,14,15,16";
or
3. String^ s = "1,2,3,4/XX/YY";
for the 1st case i should get output as combination as 1,7,9,13,XX,YY,asas and 2,7,9,13,XX,YY,asas and 3,7,9,13,XX,YY,asas and 4,7,9,13,XX,YY,asas and 4,7,9,13,XX,YY,asas and 5,7,9,13,XX,YY and 6,7,9,13,XX,YY,asas
for 2nd case output should same as we discussed in the past
for 3rd case 1,XX,YY and 2,XX,YY and 3,XX,YY and 4,XX,YY
The thing is that all are not of same length and all the things which are comma delimited should be in combination with the ones which are slash delimited.
any doubts i would be happy to clear them.
VulpesRank #55 · 29.2K reputationPosted Sep 30, 2011, 3:18 AM EDT
VulpesRank #55 · 29.2K reputationPosted Oct 1, 2011, 4:43 AM EDT
Karthik AgarwalRank #2,270 · 620 reputationPosted Oct 1, 2011, 5:17 AM EDT