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

Which sorting is used in collections sort?

916


What is harvesting in agriculture?

917


For addition and deletion. Which one is most preferred: array list or linked list?

932


What is difference between for loop and foreach?

919


Will hashmap allow null keys?

956


By Which algorithm, the 8 queens problem is solved?

972


What is difference between hashmap and hashtable?

1014


Suppose in an integer array, there is 1 to 100 number, out of one is duplicate, how to find?

1010


What is the difference between hashmap and arraylist?

1051


What is the time complexity of arrays sort?

906


What is immutablelist?

964


What are the 3 types of measurement?

1090


What are control structures?

998


Can hashmap have same key?

915


How do you initialize an arraylist?

1031