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 / rahul

When the elements are ordered in either Ascending or Descending order, Quick sort behaves Equivalent to Merge sort. Time complexity of O(nlogn) is taken for sorting.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who invented data structure?

986


What is a list in data structure?

867


When will we get ArrayStoreException?

1111


How do you reference all the elements in a one-dimension array?

987


How do you find the complexity of a selection sort?

834


Does arraylist extend list?

862


What are the applications of linked list?

820


What are the types of binary tree?

851


What is adt in data structure?

894


What are the differences between b tree and b+ tree?

851


Can we extend an array after initialization?

989


What is the difference between array list and vector list?

845


Define b-tree of order m?

901


What is the difference between ienumerable and list?

808


Why concurrenthashmap is fail safe?

912