Explain Big-O notation with an example



Explain Big-O notation with an example..

Answer / hrindows@gmail.com

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 are the uses of java?

0 Answers  


How do you declare a string variable?

0 Answers  


Have you used any version control ? if so explain about it?

2 Answers  


What is the syntax and characteristics of a lambda expression? Explain

0 Answers  


What does java ide mean?

0 Answers  






What is string args [] in java?

0 Answers  


What are the restrictions imposed by a Security Manager on Applets?.

0 Answers  


Write the algorithm to check the number non-leaf nodes in a tree.

0 Answers   Amdocs,


Explain about procedural programming language or structured programming language and its features?

0 Answers  


What is final?

0 Answers  


Difference between java and javascript

0 Answers  


Why is core java important?

0 Answers  


Categories