in reply to finding tuples

If I understand correctly, it would be best to break down the input into smaller inputs.

Update: Oops, the first one isn't quite right. Consider when there is 5 subsequent letters with a count of 1.

Replies are listed 'Best First'.
Re^2: finding tuples
by Anonymous Monk on Jun 24, 2009 at 08:17 UTC
    If the input has none of a letter

    That appears to be the key to speed it up. Thanks!