From: Bill Guindon Date: 2005-03-10T02:26:45+09:00 Subject: Re: A puzzle On Wed, 9 Mar 2005 23:13:41 +0900, Pit Capitain wrote: > Pit Capitain schrieb: > > I get 541, too. Your code seems to not pay attention to the following > > restriction: > > ... > > Looking at your code I see that the restriction *IS* handled there. The > check has to be repeated one more time, though, so it should be > > ((q=b[-1]).size-1).times > > Then you get the same 541 results. > > Regards, > Pit Got some great replies to this, on and off-list. Thanks to all who took a shot at it. You all managed to solve that last part (which had me stumped) of eliminating the redundancies. Hope you enjoyed it, was asked on another list, and just seemed like a fun one :). -- Bill Guindon (aka aGorilla)