An array contains the following elements 7 8 26 44 13 23 57
An array contains the following elements: 7 8 26 44 13 23 57 98.
The first two elements have been sorted using a bubble sort. What would be the value of the elements in the array after three more passes of the bubble sort algorithm? Use the version that of bubble sort that starts from the end and bubbles up the smallest element. Your answer includes the intermediate results that the algorithm computes.
Solution
Since this bubble works from the end so after three passes including the array will be like below-
7 8 13 23 26 44 57 98
