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

Re: puzzle: how many ways to make $100

by blokhead (Monsignor)
on Apr 29, 2006 at 04:32 UTC ( #546465=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub make_change {
        my ($N, @coins) = @_;
    ...
    }
    
    print make_change( 100 => 50, 25, 10, 5, 1 );
    
  2. or download this
    sub make_change {
        my ($N, $coins, $callback, @so_far) = @_;
    ...
      [50, 25, 10, 5, 1],
      sub { print "@_\n" }
    );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-09-01 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (9 votes), past polls