Re: Perl Quiz of the Week #23

Mark Jason Dominus <[email protected]>
Newsgroups gmane.comp.lang.perl.qotw.discuss
Message-ID <[email protected]>
Yitzchak Scott-Thoennes <[email protected]>:
> >         (((())))
> >         ((()()))
> >         ((())())
> >         ((()))()
> >         (()(()))
> >         (()()())
> >         (()())()
> >         (())(())
> >         (())()()
> >         ()((()))
> >         ()(()())
> >         ()(())()
> >         ()()(())
> >         ()()()()
> > 
> > in some order.
> 
> That's a very strange sample order; 

No, it isn't.  It's lexicographic order.  I sorted the list before I
sent the message.

> I have a hard time picturing an algorithm coming up with it.  

Prepare to be astonished.
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.