in reply to Re: Re (tilly) 2: (Golf as well): List of Partitions
in thread (Golf as well): List of Partitions
UPDATEsub P{ [@_],map{my$i=$_;map$$_[0]>$i?():[$i,@$_],P($_[0]-$i)}1..$_[0]-1 }
UPDATE 2
Scraping the barrel for 61:
sub P{ my$i;[@_],map{map$$_[0]>$i?():[$i,@$_],P($_[0]-++$i)}2..$_[0] }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re (tilly) 4: (Golf as well): List of Partitions
by jynx (Priest) on May 07, 2001 at 09:39 UTC | |
by tilly (Archbishop) on May 07, 2001 at 15:35 UTC |