Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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?
[choroba]: I can't say "Good morning", getting the "Whoa cowboy"
[marto]: the same thing just happened to me :P
Discipulus our orders office is a crow of idiots...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-01-19 10:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.