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 complexity of adding an element to the heap?
What is the use of tree data structure?
Construct a doubly linked list using a single pointer in each node?
How does linkedhashset work internally?
Explain the steps to insert data into a singly linked list?
How do you use the sort function?
What is a circular singly linked list?
How do you rotate an AVL tree?
Which data structures are used in bfs and dfs algorithm?
Is hashmap faster than arraylist?
What is complexity algorithm?
How do you declare A pointer to array of three chars
Can you have an arraylist of arrays?
Does linked list allow duplicates?
What is dynamic array how it is created?