Advertisements
Advertisements
Question
Consider a list of 10 elements:
numList = [7, 11, 3, 10, 17, 23, 1, 4, 21, 5].
Display the partially sorted list after three complete passes of Bubble sort.
One Line Answer
Advertisements
Solution
Partially sorted list after three complete passes of Bubble sort is [3, 7, 10, 1, 4, 11, 5, 17, 21, 23].
shaalaa.com
Bubble Sort in Python
Is there an error in this question or solution?
