Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Binary search

by golux (Chaplain)
on Mar 29, 2013 at 17:39 UTC ( [id://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
    #!/usr/bin/perl
    
    ...
    # Bareword "a" not allowed while "strict subs" in use at 1026159.pl li
    +ne 7.
    # Bareword "b" not allowed while "strict subs" in use at 1026159.pl li
    +ne 7.
    # Execution of 1026159.pl aborted due to compilation errors.
    
  4. or download this
        $mid = ($low+$high)/2;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found