in reply to (Golf) Ordered Combinations
If we don't have to be strict compliant...49.
(Note: I handle the case of $n=0 correctly. The solution that you started with does not...)sub c { @r='';@r=map{$c=$_;map$c.$_,@r}@_ for 1..shift;@r }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re (tilly) 1: (Golf) Ordered Combinations
by MeowChow (Vicar) on Apr 25, 2001 at 07:20 UTC | |
by Anonymous Monk on Jan 25, 2007 at 16:26 UTC |
In Section
Obfuscated Code