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?

Answers were Sorted based on User's Feedback



A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

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

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

Answer / sarvesh

insertion is answer....as there is no case of swapping as
no. are in ordered pair..so less time will will be taken

Is This Answer Correct ?    1 Yes 2 No

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

Answer / gautam

heap sort is the correct answer because it requires log(n)
time where n is the number of nodes

Is This Answer Correct ?    0 Yes 1 No

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

Answer / sailakshmi.s

straight insertion

Is This Answer Correct ?    0 Yes 3 No

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

Answer / ganesan

quick sort

Is This Answer Correct ?    2 Yes 12 No

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

Answer / pavan

Quick Sort

Is This Answer Correct ?    2 Yes 12 No

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest..

Answer / dwiti

Selection Sort

Is This Answer Correct ?    0 Yes 12 No

Post New Answer

More Data Structures Interview Questions

State the difference between queues and linked lists?

0 Answers  


What is the use of sorting?

0 Answers  


What is insertion sort technique?

0 Answers  


Write the disadvantages of separate chaining?

0 Answers  


When will you sort an array of pointers to list elements, rather than sorting the elements themselves?

5 Answers  


A lot of data structures related programs related to only trees and graphs, like the diameter of a tree, removing the loops in a graph etc.

0 Answers   Motorola,


Which is faster arraylist or hashmap?

0 Answers  


What is dynamic array in excel?

0 Answers  


List out the basic operations that can be performed on a stack?

0 Answers  


How do you find the height of a binary tree?

0 Answers  


Describe queue operation.

0 Answers  


Define root?

0 Answers  


Categories