How to generate k+1 length strings from a list of k lengthstrings?

Girish Sahani girish at cse.iitb.ac.in
Thu Jun 8 21:09:49 EDT 2006


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?", or "Which pairs of strings have a substring of
>> len(string) - 1 in common?".
>>
>> Jon.
>
> I imagine it's the former because the latter is trivially easy, I mean
> _really_ trivially easy.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>




More information about the Python-list mailing list