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

Can you sort a hashmap?

569


What is mean by abstract data type?

606


Why null is allowed in hashmap?

543


What is non linear structure?

589


What is meant by balanced binary tree?

567






Explain about the different lists available in the collection?

541


What is the two-dimensional array?

635


How do you find the complexity of a bubble sort?

546


Explain the uses of matrix with an example?

648


What do you mean by Logical Error

637


What does enum do?

596


How do you sort an array in decreasing order?

539


Model a data structure for a DFA that takes an event as parameter and performs a desired action.

781


List the limitations of linear probing?

608


What do you mean by articulation point?

643