Skip to content

Commit fa272a8

Browse files
committed
Improve documentation and add clarity comments
1 parent 3c88735 commit fa272a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sorts/bubble_sort.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
from typing import Any
2+
# Bubble Sort algorithm
3+
# Time Complexity: O(n^2)
4+
# Space Complexity: O(1)
5+
26

37

48
def bubble_sort_iterative(collection: list[Any]) -> list[Any]:

0 commit comments

Comments
 (0)