Vidyalelo
Data Structure · Q237

Sorting Algorithms

Programming · Data Structure · question 237

Q237

How many iterations are required to sort the array arr=2, 3, 4, 5, 1 using bubble sort and cocktail sort respectively?

A.
4,2
Answer
B.
5,3
C.
5,2
D.
4,3

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board