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 balancing condition for AVL Tree.
Where is insertion sort used?
What is the best complexity of bubble sort?
What is the use of hashtable?
What is stack explain with diagram?
Are duplicates allowed in list?
Is bucket sort a comparison sort?
How much time does it take to learn data structures?
What are hash tables good for?
What are the different types of data structures explain briefly?
How does hashset maintain order?
Why is hashmap faster than treemap?
What is difference between hashtable and hashmap?
How do I remove a value from a list?
How can you implement a stack?