Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Binary search

by farang (Chaplain)
on Mar 29, 2013 at 17:41 UTC ( #1026180=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $mid=($low+$high)/2;
    
  2. or download this
    use strict;
    use warnings;
    
  3. or download this
    use strict;
    use warnings;
    ...
    say $list[2.5];
    say $list[2.01];
    say $list[2.99]; # all these print '2'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-01-28 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (224 votes), past polls