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
How to print element of Array?
What do you mean by union-by-weight?
Briefly explain recursive algorithm 50 how do you search for a target key in a linked list?
What type of memory allocation is referred for Linked lists?
What do you mean by balance factor of a node in avl tree?
Write code for reversing a linked list.
How many types of data structure are there?
Is file a data structure?
Explain the steps to insert data into a singly linked list?
What are priority queues?
Define heap?
Why is null not allowed in concurrenthashmap?
Write a program to sum values of given array.
Can we add or delete an element after assigning an array?
How is bubble sort done?