Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: The Oldest Plays the Piano

by ambrus (Abbot)
on Dec 22, 2009 at 12:09 UTC ( #813859=note: print w/ replies, xml ) Need Help??


in reply to Re^2: The Oldest Plays the Piano
in thread The Oldest Plays the Piano

See also Explain one liner for fibonacci.

Update: Explain Fibonacci one-liner ?? too.

Update 2010-07-21: Try this for Catalan numbers:

perl -le'$==0,(1x$_)=~/(^)(|1(?2)(?2)(?(?{})))$(?{$=++})^/,print$=for +0..13'

Update 2010-11-21: A nicer version for the Catalan numbers:

perl -le'$==0,(1x$_)=~/^(|()1(?1)(?1)\2)$(?{$=++})^/,print$=for 0..13'


Comment on Re^3: The Oldest Plays the Piano
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://813859]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2015-07-07 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls