Consecutive Character Sequences

George Sakkis gsakkis at rutgers.edu
Thu Jul 14 08:21:56 EDT 2005


"Aries Sun" <sun.aries at gmail.com> wrote:

> I have tested George's solutions, it seems not complete. When pass (s,
> 3) to the function hasConsequent(), it returns the wrong result.

What are you talking about ? I get the correct answer for
>>> hasConsequent("taaypiqee88adbbba", 3)
True


George





More information about the Python-list mailing list