Developing Algorithms Using Arrays

AP Computer Science A· difficulty 4/5

Bubble sort swaps

  • A

    Adjacent elements that are out of order

    check_circle
  • B

    Same elements

  • C

    Random elements

  • D

    First and last only

Explanation

Repeated passes: largest "bubbles" to the end.

Want 10 more like this — adaptive to your weak spots?

Related questions