Question:

What will be the result after pass 2 using Bubble Sort, if we are sorting elements in ascending order?
Initial List: 7 19 18 9 23 51 12 54 73

Updated On: Nov 4, 2024
  • 7, 18, 19, 9, 23, 12, 51, 54, 73
  • 7, 9, 18, 19, 12, 23, 51, 54, 73
  • 7, 9, 19, 18, 12, 23, 51, 54, 73
  • 7, 9, 18, 19, 23, 51, 12, 54, 73
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

In Bubble Sort, after two passes, the list becomes: 7, 9, 18, 19, 23, 51, 12, 54, 73.
Was this answer helpful?
0
0