Bubble sort in descending order

Report a typo

Given the following array of integers:

{ 1, 2, 3, 4, 5, 6 }
 

We sort the array using bubble sort in the descending order from the left to right.

In what order will the array elements be placed after three full iterations of the algorithm?

The output format example:

1 2 3 4 5 6
Enter a short text
___

Create a free account to access the full topic