Re: [Spoiler] QotW 23

José Alves de Castro <[email protected]>
Newsgroups gmane.comp.lang.perl.qotw.discuss
Message-ID <[email protected]>
On Sat, Sep 04, 2004 at 12:21:29PM -0500, Rod Adams wrote:
> This is very similar to my Expand/Enclose routine which, while very 
> speedy, I had to withdraw.
> 
> You will notice that at n=4, it does not generate (())(()). At higher n, 
> there are more and more patterns that it fails to generate.
> All of my attempts to remedy the situation degenerated into a form of my 
> Nested routine.

You're right.

It is now my opinion that these quizzes should all have tests included :-)

> -- Rod
> 

-- 
José Alves de Castro <[email protected]>
  http://natura.di.uminho.pt/~jac
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.