Solved

An Array of 4 Elements Is Being Sorted in Ascending

Question 33

Multiple Choice

An array of 4 elements is being sorted in ascending order using the insertion sort algorithm.How many comparisons will insertion sort perform if the array was originally sorted in descending order?


A) 2 comparisons
B) 4 comparisons
C) 6 comparisons
D) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions