Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is the difference between Linear Array and Linked List?

1105


Which type of sorting is best?

976


What is the complexity of adding an element to the heap?

987


Which is faster hashset or treeset?

1063


What is stack and queue in data structure?

979


What are the scenarios in which an element can be inserted into the circular queue?

1462


Can you sort a hashset?

971


What is the order of selection sort?

871


Can you store different types in an array?

980


What do you understand by doubly linked list?

981


What is time complexity of hashmap?

1157


What do you mean by the term “percolate up”?

990


Can arraylist store objects?

999


List out a few of the applications that make use of Multilinked Structures?

1221


How do I remove a value from a list?

896