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

Answer Posted / zeeshan

insertion sort shows best case behaviour when list is
already sorted.....

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What exactly is data?

520


What is an example of an algorithm?

483


Why quicksort is better than merge sort?

479


What is the difference between a push and a pop?

551


How do you replace an element in an arraylist?

527






Is selection sort greedy?

510


Can you declare an array without assigning the size of an array?

516


Can arraylist store int?

464


Why set will not allow duplicates?

493


Is array a data type?

493


Differentiate between hashmap and treemap.

510


Is null a binary search tree?

479


What is application of data structure?

472


Is array faster than arraylist?

456


What is a hashset?

499