Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: Golf: Tree searching

by tadman (Prior)
on Apr 20, 2001 at 08:36 UTC ( #74078=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f{for($t=pop;$_=(0,l,r)[$$t{d}cmp$_[0]]and$t=$$t{$_};){}$t}
  2. or download this
    sub f{for($t=pop;$_=$$t{d}cmp$_[0]and$t=$$t{$_>0?l:r};){}$t}
  3. or download this
    sub f{for($t=pop;$_=$$t{d}cmp$_[0]and$t=$$t{$_};){}$t}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://74078]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2017-04-30 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (542 votes). Check out past polls.