How many swaps are needed to sort the number sequence 5, 8, 3, 6, 2 in ascending order using bubble sort?

How many swaps are needed to sort the number sequence 5, 8, 3, 6, 2 in ascending order using bubble sort?

From the BPSC Assistant Database Administrator (ICT) 2022 – Written exam, question 9 of 33.

More from this paper