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 does sorting an array do?

929


Which is better bubble sort or selection sort?

824


Differentiate between comparable and comparator.

1040


How do you implement a stack?

895


Which interfaces are implemented by hashmap?

974


How many types of lists are there?

1070


Can a binary tree be empty?

929


What is circular queue in data structure?

903


What does simulation of queues mean?

1011


What is data type and its types?

942


Mention the advantages of representing stacks using linked lists than arrays?

916


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

1276


What is the purpose of sorting algorithms?

988


What is bubble sort?

903


Will it create any problem if we add elements with key as user defined object into the treemap?

909