Q. The given array is arr = {1,2,3,4,5}. (bubble sort is implemented with a flag variable)The numberof iterations in selection sort and bubble sort respectively are, (Solved)

1. 5 and 4

2. 1 and 4

3. 0 and 4

4. 4 and 1

  • d. 4 and 1
Subscribe Now

Get All Updates & News