Skip to content

Commit 45bf9e0

Browse files
Update bucket_sort.py
1 parent 381f069 commit 45bf9e0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sorts/bucket_sort.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def bucket_sort(my_list: list, bucket_count: int = 10) -> list:
7777
return []
7878

7979
min_value, max_value = min(my_list), max(my_list)
80-
if min_value == max_value:
81-
return my_list
8280
bucket_size = (max_value - min_value) / bucket_count
8381
buckets: list[list] = [[] for _ in range(bucket_count)]
8482

0 commit comments

Comments
 (0)