Advertisements
Advertisements
Question
What will be the number of passes needed to sort a list of five elements?
Options
5
6
7
8
MCQ
Solution
5
Explanation:
If the total number of elements in the list is 6, then the insertion sort would require 6 – 1 = 5 passes.
shaalaa.com
Insertion Sort
Is there an error in this question or solution?