From: James Gray Date: 2008-01-19T01:43:11+09:00 Subject: Re: [QUIZ] Longest Repeated Substring (#153) On Jan 18, 2008, at 10:37 AM, Dave Thomas wrote: > On Jan 18, 2008, at 7:23 AM, Ruby Quiz wrote: > >> Repeated substrings may not overlap. If more than one substring is >> repeated >> with the same length, you may print any of them. If there is no >> repeated >> substring, the result is an empty string (print nothing). > > Must they be adjacent, or does "aaabaaa" contain the repeating > substring "aaa"? They do not have to be adjacent. aaa would be a valid answer for aaabaaa. James Edward Gray II