Given an array of five numbers: . Sort its steps in the correct order after each Bubble Sort pass. Ignore duplicates.
Sorting algorithms
Bubble Sort states
Report a typo
Put the items in the correct order
[5, 3, 8, 4, 2]
[2, 3, 4, 5, 8]
[3, 5, 4, 2, 8]
[3, 4, 2, 5, 8]
[3, 2, 4, 5, 8]
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.