A list is ordered from smaller to largest when a sort is
called. Which sort would take the shortest time to execute?

Answer Posted / sathya

Insertion sort works with an efficiency of O(n) if the array
is already sorted. Hence, this algo can be used.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by sorting?

451


Why do we need arrays if all the operations that are performed on arrays can be performed on arraylist?

447


What is stack explain with diagram?

512


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

530


What is the function of stack?

473






What are the two types of data?

478


Define a binary tree?

562


Can binary tree have 1 child?

498


What is the purpose of sorting algorithms?

510


What are different techniques for making hash function? Explain with example.

549


Can you store different types in an array?

472


What is adt in data structure with example?

516


Why do we use arrays?

531


Differentiate between hashset and treeset.

545


Differentiate between list and map.

595