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 f2a0762 commit cc6bd81Copy full SHA for cc6bd81
pygorithm/sorting/bucket_sort.py
@@ -5,7 +5,7 @@
5
6
# bucket sort algorithm
7
def sort(myList, bucketSize = 5):
8
- from pygorithms.sorting import insertion_sort
+ from pygorithm.sorting import insertion_sort
9
import math
10
11
string = False
@@ -49,14 +49,8 @@ def sort(myList, bucketSize = 5):
49
return sortedArray
50
51
# time complexities
52
-def bestcase_complexity():
53
- return 'O(n)'
54
-
55
-def averagecase_complexity():
56
57
58
-def worstcase_complexity():
59
+def time_complexities():
+ return '''Best Case: O(n), Average Case: O(n), Worst Case: O(n)'''
60
61
# easily retrieve the source code of the sort function
62
def get_code():
0 commit comments