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
What is the idea behind splaying?
What is the heap in data structures?
State the demerit of linear representation of binary trees?
Differentiate between iterable and iterator.
Give a real time example of stack
What is inplace sorting?
Which interfaces are implemented by enumset?
What are different types of sorting algorithms?
What are priority queues?
Is collection a class or interface?
What is data and data types?
How to reference all the elements in a one-dimension array?
How remove all from arraylist?
What is structure of data type?
In Data Structure, write output of given program.