Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (Golf as well): List of Partitions

by danger (Priest)
on May 06, 2001 at 13:15 UTC ( #78337=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    2111
    11111
    
  2. or download this
    sub W{map{[split//]}&P}
    
  3. or download this
    sub P{
     my$i=my$n=pop;
     push@_,grep{!grep{$_>$i}@$_}map{[$i,@$_]}P($n-$i)while$i-->1;
     [$n],@_
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://78337]
help
Chatterbox?
[Discipulus]: Lady_Aleena use Great::Flood really, start some little project with new eyes (and a DB)
[Discipulus]: 'unless it rains' => 'a meno che NON piova'
erix is always in favour of code-revolutions
[Lady_Aleena]: Well, right now, I"m looking at modules where I put randomness that aren't in my RolePlaying/Random dir, like RolePlaying:: Character:: Alignment that is mostly about random_alignment than expand_alignment.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2017-05-27 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?