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

Answer Posted / tarun

bubble sort in the best case

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we find duplicate elements in an array?

559


Is vector synchronized?

520


What is an example of an algorithm?

483


What is the capacity of arraylist?

474


What is sort function?

537






Define separate chaining?

545


What are the best data structure courses for gate preparation?

498


When new data are to be inserted into a data structure?

485


What are the different types of collections?

497


What are the advantages of linked list?

427


Which sort is stable?

541


When will we get ArrayStoreException?

749


What is a treemap chart?

449


What is the complexity of sorting algorithm?

499


What is the time complexity of hashmap get () and put () method?

463