Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Explain Big-O notation with an example

Explain Big-O notation with an example..

Answer /

The Big-O notation depicts the performance of an algorithm as the number of elements in ArrayList. A developer can use Big-O notation to choose the collection implementation. It is based on performance, time, and memory.
For example, ArrayList get(index i) is a method to perform a constant-time operation. It does not depend on the total number of elements available in the list. Therefore, the performance in Big-O notation is O(1).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is constructor and virtual function? Can we call a virtual function in a constructor?

0 Answers  

I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance...

2 Answers   Cybernet,

Can a boolean be null java?

0 Answers  

Is a case study a method or methodology?

0 Answers  

What is run-time class and system class? what is their purpose?

1 Answers  

Is integer a class?

0 Answers  

what is main difference between architecture,framework and design pattren

3 Answers  

Which class is the superclass of all classes?

0 Answers  

What is difference between static class and singleton pattern?

0 Answers  

What is your platform’s default character encoding?

0 Answers  

State some situations where exceptions may arise in java?

0 Answers  

what is diff bet iterator and enumeration?

4 Answers