1,785 views
0 votes
0 votes
If input is sorted in reverse order , then which sorting algorithm will perform best -

A) Insertion Sort

B) Merge Sort

C) Heap Sort

D) Quick Sort

1 Answer

2 votes
2 votes

Related questions

2 votes
2 votes
1 answer
1
worst_engineer asked Oct 7, 2015
5,590 views
Which of the following sorting methods will be the best if number of swapping done is the only measure of efficiencyI am getting Bubble sort , is it right ?
1 votes
1 votes
1 answer
2
0 votes
0 votes
3 answers
3
radha gogia asked Jul 17, 2015
987 views
If we talk about that since since we cant access any random element in a linked list for that reason quick sort cant be used for linked lists ,then in merge sort also we ...
0 votes
0 votes
2 answers
4
iarnav asked Apr 25, 2019
1,003 views
I did Google and found out that Quicksort is better then Mergesort, but my question is which is faster among both?