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 shortest time to execute?

Answer Posted / sourav naskar

quick sort cant be the answer as this methods works best
when the list is completely unsorted.In this the method
would have worked best if it is descendingly sorted.As it
is completely sorted the answer is insertion sort which
takes O(n).

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any difference between int[] a and int a[]?

1155


Why hashmap is faster than hashset?

992


What are the classification of data structures?

921


Does arraylist guarantee insertion order?

901


Differentiate between iterator and listiterator.

989


What is variable size arrays?and why we use it?

1015


Describe full binary tree and complete binary tree.

875


Should I use hashmap or hashtable?

874


What's the difference between a hashtable and a hashmap?

900


Does treeset allow null?

841


What is binary search tree and explain its time complexity?

938


Is hashtable better than dictionary?

946


What are the advantages of linked list over an array?

937


Explain the most efficient method to reverse a linked list?

851


Define in brief an array.

929