From: "RadosÅ‚aw BuÅ‚at" Date: 2008-01-19T09:23:21+09:00 Subject: Re: Longest Repeated Substring (#153) > 'aaaaaa'.longest_repeating_substring #=> 'aaaaa' > > the quiz did not say that the two strings could not overlap. > > is this correct james? No, it isn't. Look at example from James: Example: $ echo banana | ruby longest_repeated_substring.rb an OR $ echo banana | ruby longest_repeated_substring.rb na Following your reasoning 'banana' would give 'ana', rather than 'an' (or 'na'). -- Rados³aw Bu³at http://radarek.jogger.pl - mój blog