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

Is map a collection?

573


What is time complexity of quick sort?

556


How to inverting a function in sort and searching?

562


Which sort algorithm is best?

566


Can we insert null in list?

588






What is the space complexity of selection sort?

629


What is data and data types?

593


What is a matrix? Explain its uses with an example

642


How is a queue works?

630


How is heap sort implemented?

558


What is the difference between hashset and treeset?

582


What is the difference between array and stack in data structures?

578


What is a simple path?

611


Does mentioning the array name gives the base address in all the contexts?

894


Can an arraylist be null?

543