From: Denis Hennessy Date: 2008-01-19T09:18:49+09:00 Subject: Re: Longest Repeated Substring (#153) On 18 Jan 2008, at 23:05, ara.t.howard wrote: >> 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? Actually the spec says "Repeated substrings may not overlap." so the correct answer for "aaaaaa" should be "aaa". /dh