in reply to Re: Golf: Tree searching
in thread Golf: Tree searching
Here's 58 chars with a completely different approach. .
sub f{($s,$t)=@_;$$t{d}eq$s?$t:f($s,$$t{l})||f($s,$$t{r})}
--twerq
sub f{($s,$t)=@_;$$t{d}eq$s?$t:f($s,$$t{l})||f($s,$$t{r})}
--twerq
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 3: Golf: Tree searching
by tilly (Archbishop) on Apr 20, 2001 at 01:55 UTC | |
by tadman (Prior) on Apr 20, 2001 at 06:12 UTC | |
by tilly (Archbishop) on Apr 20, 2001 at 07:19 UTC | |
by tadman (Prior) on Apr 20, 2001 at 08:36 UTC | |
by tilly (Archbishop) on Apr 20, 2001 at 15:18 UTC |
In Section
Meditations