Thanks for fixing mine, I was going insane. Do you have any idea why declaring the default value f's it up?
***looking at your code now
Could you narrate me through your code so I try and understand it?
just ran a benchmark test on it... Looks like yours is about 4x as fast
#
# mine
#
>>> bench("ajkfdhsajkdhas", "jskahdksjhdewasda")
(('percent', 51.609999999999999), ('length', 8), ('sequence', [0, 2, 4, 7, 8, 10, 13, 14]), ('total recursions', 64))
0.00399994850159 seconds
#
# yours
#
>>> bench2("ajkfdhsajkdhas", "jskahdksjhdewasda")
(8, 51.609999999999999, 'jkhsjhas')
0.000999927520752 seconds