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

I am not sure about the answer.

But I think the answer is "Selection Sort" whose order is
O(n^2) irrespective of the elements order.

I guess all other sorts somehow depend on the order of elements.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the steps involved in the insertion and deletion of an element in the stack.

1303


Which sorting is stable?

862


What is the height of binary tree?

951


What is linked hash set?

799


Why do we use data structures?

859


Can arraylist store primitives?

896


Define biconnectivity?

850


Can sets contain duplicates?

793


What is minimum depth of binary tree?

924


What is space complexity of a program?

843


What is difference between hashmap and hashset?

930


How do you clear a stack?

892


Can we sort hashmap?

851


What is weight balanced tree in data structure?

851


What is a list in data structure?

887