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
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 |
What is long data type?
What is space complexity of a program?
How does quicksort partition work?
Can value be null in treemap?
What type of memory allocation is referred for Linked lists?
What are the parts of a linked list?
What do you mean by spanning tree?
What does arraylist remove do?
Is it possible to increase size of array?
Write a Program for Delete an element from a doubly linked list.
What is queue example?
How to initialize Dictionary using collection initialize?