On Jan 18, 2008, at 2:00 PM, yermej wrote: > On Jan 18, 2:38 pm, Ken Bloom <kbl... / gmail.com> wrote: >> First testcase: >> "your banana my banana" should give " banana" >> >> --Ken >> >> -- >> Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. >> Department of Computer Science. Illinois Institute of >> Technology.http://www.iit.edu/~kbloom1/ > > And a second: > "aaaaaa" should give "aaa" > > Right? i would think that 'aaaaaa'.longest_repeating_substring #=> 'aaaaa' the quiz did not say that the two strings could not overlap. is this correct james? a @ http://codeforpeople.com/ -- share your knowledge. it's a way to achieve immortality. h.h. the 14th dalai lama