A list is ordered from smaller to largest when a sort is
called. Which sort would take the longest time to execute?
Answer Posted / zeeshan
quick sort is the answer.....quick sort shows worst case
behaviour when the list is already sorted....
courtesy"" shaum series- data structures""
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
what is the difference between Linear Array and Linked List?
Which type of sorting is best?
What is the complexity of adding an element to the heap?
Which is faster hashset or treeset?
What is stack and queue in data structure?
What are the scenarios in which an element can be inserted into the circular queue?
Can you sort a hashset?
What is the order of selection sort?
Can you store different types in an array?
What do you understand by doubly linked list?
What is time complexity of hashmap?
What do you mean by the term “percolate up”?
Can arraylist store objects?
List out a few of the applications that make use of Multilinked Structures?
How do I remove a value from a list?