We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012e30f commit f2a0762Copy full SHA for f2a0762
pygorithm/sorting/bubble_sort.py
@@ -12,14 +12,8 @@ def sort(List):
12
return List
13
14
# time complexities
15
-def bestcase_complexity():
16
- return 'O(n ^ 2)'
17
-
18
-def averagecase_complexity():
19
20
21
-def worstcase_complexity():
22
+def time_complexities():
+ return '''Best Case: O(n ^ 2), Average Case: O(n ^ 2), Worst Case: O(n ^ 2)'''
23
24
# easily retrieve the source code of the sort function
25
def get_code():
0 commit comments