Put in order · Python course · Module 2: Data Structures
Bubble Sort - Steps
Arrange the Bubble Sort algorithm steps in order:
Items to put in order
- Stop when no swaps are made
- Compare adjacent elements
- Repeat for the entire list
- Swap them if they are in the wrong order
Show the answer
Correct order:
- Compare adjacent elements
- Swap them if they are in the wrong order
- Repeat for the entire list
- Stop when no swaps are made