Bubble Sort Algorithm Visually Explained

Dino Cajic
Level Up Coding
Published in
6 min readApr 11, 2020

--

Dino Cajic explaining the Bubble Sort Algorithm

The Bubble Sort algorithm sorts an array of items in increasing order. It steps through the array and compares the adjacent elements. If they are not sorted, it swaps them. It then keeps repeating the procedure until the array is fully sorted. Let’s jump into an example.

--

--

Author of An Illustrative Introduction to Algorithms. IT Leader with a B.S. in Computer Science, a minor in Biology, and a passion for learning.