Question:

Consider a list [8, 7, 13, 1, -5, 4]
After 3rd pass of Bubble Sort, we get

Updated On: Sep 23, 2024
  • [1, -5, 4, 7, 8, 13]
  • [1, -5, 7, 4, 8, 13]
  • [1, 7, -5, 4, 8, 13]
  • [7, 1, -5, 4, 8, 13]
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

The correct option is (A) :[1, -5, 4, 7, 8, 13].
Was this answer helpful?
0
0