Page 1 of 1

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

Posted: Wed Jul 13, 2022 6:15 pm
by answerhappygod
a) 4,2
b) 5,3
c) 5,2
d) 4,3