Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
[jedikaiti]: Yup

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2017-06-27 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (611 votes). Check out past polls.