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 complexity of adding an element to the heap?

892


What is the use of tree data structure?

824


Construct a doubly linked list using a single pointer in each node?

886


How does linkedhashset work internally?

879


Explain the steps to insert data into a singly linked list?

824


How do you use the sort function?

799


What is a circular singly linked list?

864


How do you rotate an AVL tree?

915


Which data structures are used in bfs and dfs algorithm?

976


Is hashmap faster than arraylist?

848


What is complexity algorithm?

819


How do you declare A pointer to array of three chars

949


Can you have an arraylist of arrays?

910


Does linked list allow duplicates?

832


What is dynamic array how it is created?

854