Can u specify an Xample.
--
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
algogeeks+unsubscr...@googlegroups.com.
For more options,
Hi,
Given two strings s and t of distinct characters print out all
interleavings of the characters in the two strings using recursion.
Does anybody know a suitable algorithm that could be used for this
task?
Thank you in advance.
BL
--
You received this message because you are subscribed to the
I am thinking the following algo will work. Please correct me if i am wrong.
void interleaveAndPrint(char * result, char * str1, char * str2, int i ) {
if (*str1 == '\0' *str2 == '\0') {
result[i] = '\0';
printf(%s\n, result);
return;
}