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...

If I have 1000 objects and my requirement is to sort them
quickly, then which collection would you recommend and why?

Answer Posted / muni sankar

Heapsort is one of the best general-purpose sorting
algorithms, a comparison sort and part of the selection sort
family. Although somewhat slower in practice on most
machines than a good implementation of quicksort, it has the
advantages of worst-case O(n log n) runtime and being an
in-place algorithm

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are arrays primitive data types?

1255


What is the benefit of singleton pattern?

1044


what is object slice?

2158


What is an immutable object?

1169


Can an interface be defined inside a class?

1104


What is busy spin, and why should you use it?

1128


What is a parameter in a function?

1034


why java does not support unsigned keyword?

5335


How do you reverse a word in java?

1146


Explain the scope or life time of class variables or static variables?

1038


What is a prefix function.write down a code to compute prefix function.

1107


Add a value x to array from index l to r where 0 <= l <= r <= n-1

1130


How do you check if a string contains only numeric digits?

1175


What is the argument in java?

983


How do we access static members in java?

1156