Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8685471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:34:50+00:00 2026-06-12T22:34:50+00:00

I often see you guys talking about N methods and N^2 methods, which, correct

  • 0

I often see you guys talking about N methods and N^2 methods, which, correct me if I’m wrong, indicate how fast a method is. My question is: how do you guys know which methods are N and which are N^2? And also: are there other speed indications of methods then just N and N^2?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:34:51+00:00Added an answer on June 12, 2026 at 10:34 pm

    This talks abnout the complexity of an algorithm (which is an indicator of how fast it will be, yes)

    In short, it tells how many “operations” (with operations being a very vague and abstract term) will be needed for a input to the method of size “N”.

    e.g. if your input is an List-type object, and you must iterate over all items in the list, the complexity is “N”. (often expressed O(N) ).

    if your input is an list-type object, and you need only to look at the first (or last), and the list gurantees to you that such a look at the item is O(1); your method will be O(1) – independent from the input size.

    If your input is a list, and you need to compare every item to every other item the complexity will be O(N²) or O(N*log(n))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often see two conflicting strategies for method interfaces, loosely summarized as follows: //
ADDED: I see that my question is viewed often without upvotes so I decided
Yet another SVN guideline question, I know. I recently joined a new company which
I often see people talking that the GIL is per Python Interpreter (even here
Question 1: I am studying Android service and often see code like this: private
I often see instances in which using a macro is better than using a
I often see java SourceCode where a null as value for a method or
Hey guys, I know it has been asked more often, but the answers to
I often see code a function defined without visibility keywords. e.g: class Foo() {
I often see the code like this: public abstract class AbstractDataReader { public void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.