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 |
Which is faster hashmap or hashset?
You are given a singly linked list. How would you find out if it contains a loop or not without using temporary space?
Can arraylist be resized?
Can arraylist store primitives?
What is the space complexity of quicksort?
How does quick sort work?
What do you mean by tree edge?
What is stack algorithm?
What is range search?
What is binary search in programming?
Why entry interface is used in map?
Two linked lists are given, find out the sum of them without altering the linked list?