Hi,
Can anyone give the algo to generate all possible interleavings of two arrays (better if its in C or Java)
E.g.
A1[] = {a,b};
B1[] = {c,d};
# Results = (2+2)!/(2! .2!) = 6
abcd
acbd
acdb
cabd
cadb
cdab
--
Mohammed Abdul Muqsith Imran
Department of Computer Science and Engineering,
Indian Institute of Technology, Kharagpur.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---