Bubble sort is a sorting technique used to sort a list or an array. In data structures and algorithm tutorials, this technique is covered as the most common technique for performing a sorting. It performs sorting in O(n^2) time complexity so it is not the most efficient but it is probably a very simple technique to understand. In this video we will go over theory behind how bubble sort works and implement bubble sort in python. In the end I have an exercise for you to work upon along with a solution link.

Code: https://github.com/codebasics/data-structures-algorithms-python/tree/master/algorithms/2_BubbleSort/bubble_sort.py
Exercise: https://github.com/codebasics/data-structures-algorithms-python/tree/master/algorithms/2_BubbleSort/bubble_sort_exercise.md

#python #programming #developer

Bubble Sort - Data Structures & Algorithms Tutorial Python
1.65 GEEK