Answer Posted / 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 View All Answers
How to sort array of 0 and 1 in java?
Print Vertical traversal of a Binary Tree.
How do you classify Dialog Box?
Explain the available thread states in a high-level?
Can we overload final method in java?
Where import statement is used in a java program?
What is the purpose of format function?
Can we have any code between try and finally blocks?
What is the impact of declaring a method as final?
Is break statement can be used as labels in java?
What is the difference between == and === javascript?
What is stream api in java8?
What is the locale class in java programming?
Tell us something about an iterator.
What is Major and importance difference between for and foreach loop ?