Bubble Sort Algorithm - GeeksforGeeks
www.geeksforgeeks.org › bubble-sortApr 12, 2023 · Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in the wrong order. This algorithm is not suitable for large data sets as its average and worst-case time complexity is quite high. How does Bubble Sort Work? Bubble Sort Input: arr [] = {6, 3, 0, 5} First Pass: