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
what is nested class in java?
Define class?
How is treeset implemented in java?
When super keyword is used?
What is getkey () in java?
Differece between class and generic class?
Why call by value prevents parameter value change?
What is double word?
What is a constructor, constructor overloading in java?
What is final keyword in java?
Is array a class in java?
What is purpose of keyword void?
what is object-oriented programming in java?
What is string in java? String is a data type?
Is java se open source?