Skip to content

Commit 438df7e

Browse files
committed
Typo fixes
1 parent bb4568d commit 438df7e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pygorithm/sorting/bubble_sort.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ def improved_sort(List):
2626

2727
# time complexities
2828
def time_complexities():
29-
return '''Best Case: O(n ^ 2), Average Case: O(n ^ 2), Worst Case: O(n ^ 2)
30-
For Improved Bubble Sort:
31-
Best Case: O(n); Average Case: O(n * (n - 1) / 4); Worst Case: O(n ^ 2)
32-
'''
29+
return '''Best Case: O(n ^ 2), Average Case: O(n ^ 2), Worst Case: O(n ^ 2) \n For Improved Bubble Sort: \n Best Case: O(n); Average Case: O(n * (n - 1) / 4); Worst Case: O(n ^ 2) '''
3330

3431
# easily retrieve the source code of the sort function
3532
def get_code():

0 commit comments

Comments
 (0)