in reply to (Golf) Minimizing the Bacon Number
sub b { $a=@_*@_;for(@_){%t=@_;$t=@r=$_;$t+=%t while@r=map@{delete$t{$_}},@r;$ +a=$t,$b=$_ if!ref&&$t<$a}$b }
Update: Thanks to MeowChow for crawling through that thoroughly fetid blob of code and discovering that I need to say $t+=keys%t instead of $t+=%t. And here I thought I was being so clever.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (Golf) Minimizing the Bacon Number
by MeowChow (Vicar) on May 15, 2001 at 07:14 UTC |