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
>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to