in reply to Re: (Golf as well): List of Partitions
in thread (Golf as well): List of Partitions
I keep on thinking this should be improvable, but darned if I can see it.sub P{ $n=pop;@a=[0];map{$i=$_;push@{$a[$i+$_]},map[$i,@$_],@{$a[$_]}for 0..$n}1..$n;@{$a[$n]} }
|
---|