Question
The given array is arr = {1,2,4,3}. Bubble sort is used to sort the array elements. How many iterations will be done to sort the array?
Answer: Option A
Was this answer helpful ?
Even though the first two elements are already sorted, bubble sort needs 4 iterations to sort the given array.
Was this answer helpful ?
Submit Solution