Categories
October Surprise 2024

DSA Bubble Sort – W3Schools

The Bubble Sort algorithm loops through every value in the array, comparing it to the value next to it. So for an array of (n) values, there must be (n) such comparisons in one loop.