Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: An informal introduction to O(N) notation

by jryan (Vicar)
on Jan 18, 2003 at 10:04 UTC ( #227946=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # O(n^2)
    for my $i (0..$#a-1) {
    ...
                if ($a[$_+1] < $a[$_]);
      }
    }
    
  2. or download this
    # O(n)
    my $truestatus;
    ...
            last
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2016-06-25 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (326 votes). Check out past polls.