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

What does it mean to sort an array?

978


What is difference between rb tree and avl tree?

919


What is sorting and its types?

1067


What is comparator interface used for?

1073


What does args stand for?

916


Is arraylist synchronized?

984


Is hashmap get thread safe?

867


What is the difference between Array and Arraylist?

1085


What is difference between hashmap and hashset?

981


What’s the difference between enumeration and iterator interfaces?

922


Why is null not allowed in concurrenthashmap?

905


What is the heap in data structures?

992


Can arraylist be null?

917


What is data and data structure?

950


How does max heap work?

907