Girish Sahani schrieb:
> Yes it is the former of course.Common elements could be in any order in
> both strings.
> Thanks Marc :)...though we need to add an if for checking the length of
> the string (k+1).
>
No, why? Every character from string1 is removed from string2 at most
once. And string2
Yes it is the former of course.Common elements could be in any order in
both strings.
Thanks Marc :)...though we need to add an if for checking the length of
the string (k+1).
>
> Jon Clements wrote:
>> Are you asking the question, "Which pairs of strings have one character
>> different in each?",