It's a simple sorting algorithm that repeatedly swaps adjacent elements if they are in the wrong order until the array is sorted.
Join The Clean Code Studio Newsletter
It's a simple sorting algorithm that repeatedly swaps adjacent elements if they are in the wrong order until the array is sorted.