Vidyalelo
Data Structure · Q397

Sorting Algorithms

Programming · Data Structure · question 397

Q397

The given array is arr = 3, 4, 5, 2, 1. The number of iterations in bubble sort and selection sort respectively are . . . . . . . .

A.
5 and 4
Answer
B.
4 and 5
C.
2 and 4
D.
2 and 5

Answer: Option A

Solution

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