Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Challenge: Number of unique ways to reach target sum

by tall_man (Parson)
on Sep 26, 2006 at 21:12 UTC ( [id://575024]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $sum = sumover $triangle{$nmax,$kmax};
    print "Total unique partitions C(677,10) on {1..100} is ",$sum,"\n";
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    print "Next to last one: ",join(q{ },@gennxt),"\n";
    my @genmid = generate($nmax,$kmax,int($sum/2));
    print "Middle one: ",join(q{ },@genmid),"\n";
    

Log In?
Username:
Password:

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

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

    No recent polls found