Day 20: Sorting
The problem below discusses a simple sorting algorithm called Bubble Sort.
Let's go throw the solution:
Create a variable totalNumberOfSwaps and make it equal to 0 at the beginning.
we create a loop in the range of n (the size of our array).
inside ...
ahmedelsayed.hashnode.dev1 min read