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

What is the average number of comparisons in a sequential search?

5 Answers  


Name few collections map implementations?

0 Answers  


Can nsarray contain nil?

0 Answers  


Does arraylist allow null values?

0 Answers  


What is heap tree?

0 Answers  


What is application of data structure?

0 Answers  


Is array static or dynamic?

0 Answers  


Describe the merge sort principle and what will be its time complexity?

1 Answers   Wipro,


Is an arraylist an object?

0 Answers  


How to find if linked list has loop?

0 Answers  


How do treesets work internally?

0 Answers  


What type of data structure is used to perform recursion?

0 Answers  


Categories