From: "Eric I." Date: 2007-12-10T10:30:01+09:00 Subject: Re: Word Loop (#149) On Dec 9, 4:19 pm, Siep Korteling wrote: > I tried Eric's code with the dutch artificial word > "hottentottententententoonstelling". It did not like that. Yeah, that would be problematic. If L is the number of characters, then the search space is 2 ** (L - 2) [see reason below]. So with a 33-character word, 2 ** 31 is 2.1 billion. That might take a while in Ruby 1.8.6. But in 1.9 .... ;) Eric P.S. The second character always follows the first character to the right. Each subsequent character could continue in the same direction as the previous direction or make a right turn.