Mark As Completed Discussion

Build your intuition. Fill in the missing part by typing it in.

Bubble Sort works by repeatedly swapping adjacent elements if they are in the wrong order. The algorithm iterates through the entire array multiple times until all elements are in the correct order.

Fill in the blank: Bubble Sort works by repeatedly swapping _ if they are in the wrong order.

Write the missing line below.