Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: puzzle: how many ways to make $100

by blokhead (Monsignor)
on Apr 29, 2006 at 04:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://546465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2024-04-18 11:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found