234k views
1 vote
The number of swappings needed to sort the number 8, 22, 7, 9, 31 in ascending order, using bubble sort is

User Bracana
by
3.6k points

1 Answer

2 votes

Answer:

3

Step-by-step explanation:

swap the 7 with the 22

swap the 7 with the 8

swap the 9 with the 22

User Datha
by
3.4k points