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

Write an algorithm to check if there is a loop in a doubly linked list.

733


Can hashmap be sorted?

692


Is hashmap faster than arraylist?

634


Can we remove element from arraylist while iterating?

677


What is ordered map?

633


What are all the classes and interfaces that are available in the collections?

674


Is sorting a math skill?

654


Which is better hashmap or hashtable?

659


Which is faster arraylist or linked list?

652


What is the advantage of the heap over a stack?

755


What do you mean by collision in hashing?

721


Which list does not allow duplicates?

673


Is it possible to make an array volatile in java?

677


What is data structure and why we need it?

652


What is bubble sort and selection sort?

702