A list is ordered from smaller to largest when a sort is
called. Which sort would take the longest time to execute?
Answer Posted / 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 View All Answers
Define in brief an array.
Sorting is not possible by using which of the methods?
What is a data structure definition?
Describe the complexity of Quick Sort
Will arraylist maintain insertion order?
which notations are used in evaluation of arithmetic expressions using prefix and postfix forms?
Which interfaces are implemented by linkedlist?
How many types of search algorithms are there?
What is a linear search?
What is the meaning of anonymous array? Explain with an example?
What is data structures in computer science?
Can we make hashmap synchronized?
What is an ordered map?
Can a binary tree be empty?
what is the difference between singly and doubly linked lists?