How Bubble Sort Works?
Bubble sort works by repeatedly comparing adjacent elements in the array and swapping them if they are out of order. The process is repeated until no more swaps are made, which indicates that the array is sorted.
Is Comb Sort better than Bubble Sort?
Comb sort and bubble sort are both simple sorting algorithms that are easy to implement. However, comb sort is generally considered to be more efficient than bubble sort.