Advertisements
Advertisements
प्रश्न
A list has 12 elements. How many passes will a bubble sort algorithm make to sort the list?
पर्याय
12
11
6
7
MCQ
उत्तर
11
Explanation:
To sort the list, n-1 passes are made, so for 12 elements, there will be 11 passes.
shaalaa.com
Bubble Sort
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?