Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain Big-O notation with an example

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


Please Help Members By Posting Answers For Below Questions

What about instanceof operator in java?

1022


What are aggregate functions explain with examples?

1063


extending thread class or implementing runnable interface. Which is better? : Java thread

999


How do you use compareto method?

1019


When is an object subject to garbage collection?

1067


What is treeset and treemap in java?

1071


What are the object and class classes used for?

1044


What is the default value of float and double datatype in java?

1015


What is byte code and why is it important to java’s use for internet programming?

1131


Can we extend immutable class?

989


Is hashset ordered java?

1090


If system.exit (0); is written at the end of the try block, will the finally block still execute?

1111


What do you understand by the term polymorphism?

1080


What does isempty () do in java?

1057


how to create multithreaded program? Explain different ways of using thread? : Java thread

985