Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Smoothsort

by Tux (Abbot)
on Sep 21, 2015 at 09:45 UTC ( #1142614=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub leonardo{
        my $n = shift;
    ...
            return leonardo($n-2)+leonardo($n-1)+1;
        }
    }
    
  2. or download this
    sub leonardo {
        my $n = shift;
    ...
            return 1;
        return leonardo ($n - 2) + leonardo ($n - 1) + 1;
        }
    
  3. or download this
    sub leonardo {
        my $n = shift;
        $n == 0 || $n == 1 ? 1 : leonardo ($n - 2) + leonardo ($n - 1) + 1
    +;
        }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-11-28 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?