Bubble Sort And Cocktail Shaker Sort: Efficient Sorting Algorithms
We're learning Bubble Sort & Cocktail Shaker Sort! Bubble Sort: swaps adjacent elements, O(n^2) time complexity, but easy to implement. Cocktail Shaker Sort: does forward & backward traversal, reduces swaps needed, still impractical for large data.