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

Answer Posted / sarvesh

insertion is answer....as there is no case of swapping as
no. are in ordered pair..so less time will will be taken

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Different Types of pattern?

629


Define threaded binary tree.

731


Can you please explain the difference between array_name and &array_name?

640


Differentiate between push and pop?

787


If I try to add enum constants to a treeset, what sorting order will it use?

805






Does treemap allow null key?

550


How can I search for data in a linked list?

650


Advanced problems related to Data Structures were asked

617


Describe the complexity of Quick Sort

643


Find duplicates in infinite range. Which data structure to be used to give efficient solution?

615


Which interface treemap implements?

634


What is difference between list and array?

552


Is array a linked list?

554


What is peek in stack?

553


Which is better selection or bubble sort?

579