Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Binary search

by golux (Friar)
on Mar 29, 2013 at 17:39 UTC ( #1026179=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    print "Sorted => @num_list\n";
    # Output:  Sorted => 34 2 65 345 987 23 12 45 62 100
  2. or download this
    @num_list= sort {a <=> b} @num_list1;
  3. or download this
    # Bareword "a" not allowed while "strict subs" in use at li
    +ne 7.
    # Bareword "b" not allowed while "strict subs" in use at li
    +ne 7.
    # Execution of aborted due to compilation errors.
  4. or download this
        $mid = ($low+$high)/2;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026179]
[marinersk]: I am helmet.
Mr. Muskrat gets a cup of coffee to wash down the cookies.
vrk is out of cookies

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (14)
As of 2017-04-27 20:59 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (514 votes). Check out past polls.