Bubble Sort

In this lesson, we'll learn how bubble sort works and see the implementation.

We'll cover the following...

Bubble sort

For each element starting from the first, compare with the adjacent element and swap the two if they are in incorrect order, i.e., arr[i] > arr[i+1]. The first iteration places the largest element at arr[N-1]. The second iteration places the second largest at ...

Access this course and 1400+ top-rated courses and projects.