Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: puzzle: how many ways to make $100

by GrandFather (Cardinal)
on Apr 29, 2006 at 00:44 UTC ( #546446=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        push @results, join ' ', map {"\$$values[$_][0] x $values[$_][1]"}
    + @denoms;
        return;
    }
    
  2. or download this
    $1 x 100
    $2 x 1 $1 x 98
    ...
    $50 x 2
    $100 x 1
    4563 combinations found
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-12-25 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls