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 cc6bd81 commit 69bffceCopy full SHA for 69bffce
pygorithm/sorting/counting_sort.py
@@ -28,14 +28,8 @@ def sort(myList):
28
print('Counting Sort can only be applied to integers')
29
30
# time complexities
31
-def bestcase_complexity():
32
- return 'O(n + k)'
33
-
34
-def averagecase_complexity():
35
36
37
-def worstcase_complexity():
38
+def time_complexities():
+ return '''Best Case: O(n + k), Average Case: O(n + k), Worst Case: O(n + k)'''
39
40
# easily retrieve the source code of the sort function
41
def get_code():
0 commit comments