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

Answers were Sorted based on User's Feedback



A list is ordered from smaller to largest when a sort is called. Which sort would take the longest ..

Answer / siya

bubble sort

Is This Answer Correct ?    1 Yes 5 No

A list is ordered from smaller to largest when a sort is called. Which sort would take the longest ..

Answer / manasi

The Time Complexity of Bubble sort,insertion sort and
selection sort is same i.e. O(n^2). So all sorting
algorithms will take same time to sort the elements.
Please correct me if im wrong..

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Data Structures Interview Questions

How do you find the complexity of a bubble sort?

0 Answers  


Define terminal nodes in a tree?

0 Answers  


Explain quick sort?

0 Answers  


Does arraylist have index?

0 Answers  


What is a stable algorithm?

0 Answers  






Is list a data type?

0 Answers  


What is scalar example?

0 Answers  


Define heap?

0 Answers  


What is the purpose of sorting?

0 Answers  


what is the difference between Linear Array and Linked List?

0 Answers  


What is the difference between a push and a pop?

0 Answers  


Can the double-checked locking fail on a single processor system?

0 Answers  


Categories