in reply to Re: andye - a different tack Re: "Countdown" (golf)
in thread "Countdown" (golf)
Change the outer for loop to a map (1 character)
Change the /^$/ to just $_ (2 characters)
Change the @{$w[-1]} to @{pop@w} (1 character)
Drop the semi-colon after the inner for loop (1 character)
Which gives us:
67 characters?#234567890123456789012345678901234567890123456789012345678901234567890 +12 map{$n=$o=$_;for$c(@_){$n+=s/$c//}$_&&push@{$w[$n]},$o}<D>;@{pop@w}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re:**3 a different tack: "Countdown" (golf)
by blakem (Monsignor) on Dec 02, 2001 at 07:26 UTC |