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

What is the difference between array list and vector list?

910


What are the properties of binary heap?

1031


Is hashset a collection?

929


Give the example of validating the parenthesis of expression using stack.

1041


What is a postfix expression?

1008


How do you search for a target key in a linked list?

1179


Is hashtable fail fast?

860


Can we change the size of an array at run time?

977


Write a program using mergesort technique.

1010


Can we make hashmap synchronized?

945


Define double hashing?

957


Explain different methods in which you can traverse a tree?

931


Which is better hashmap or hashtable?

928


What is mergesort and hashtable?

1110


Can you override methods of arraylist?

996