Bubble sort swaps
- Acheck_circle
Adjacent elements that are out of order
- B
Same elements
- C
Random elements
- D
First and last only
Explanation
Repeated passes: largest "bubbles" to the end.
AP Computer Science A· difficulty 4/5
Bubble sort swaps
Adjacent elements that are out of order
Same elements
Random elements
First and last only
Explanation
Repeated passes: largest "bubbles" to the end.
Want 10 more like this — adaptive to your weak spots?