Skip to content

Commit 05655cf

Browse files
committed
Bubble Sort
1 parent e64848f commit 05655cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sorting-Algo/bubblesort.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
'''
22
Bubble Sort
33
Bubble sort is a sorting algorithm that compares two adjacent elements and swaps them until they are not in the intended order.
4+
5+
Time Complexity - O(n2)
46
'''
57

68
def bubbleSort(array):

0 commit comments

Comments
 (0)