Toy problem: BubbleSort

Fakhreddine Messaoudi
2 min readMar 6, 2021

Hack Reactor

Hello guys, today I’m going to explain the bubble sort algorithm and explain it as simply as I can.

Let’s get started

The first thing, there is a lot of other algorithms that sort arrays with different way. In this toy problem, we have the most basic sorting algorithm also it's easy to understand.
First of all, let’s take this example [5,6,2,3]:

--

--

Fakhreddine Messaoudi

Was man shreibt, bleibt. Support my writing with a simple follow and clapp!