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 a31a022 commit 7268d28Copy full SHA for 7268d28
1 file changed
sorts/pigeonhole_sort.py
@@ -10,9 +10,11 @@ def pigeonhole_sort(a):
10
>>> pigeonhole_sort(a) # a destructive sort
11
>>> a == b
12
True
13
+
14
+ >>> pigeonhole_sort([])
15
"""
- if not a:
- return # this handles empty list
16
+ # if not a:
17
+ # return # this handles empty list
18
# size of range of values in the list (ie, number of pigeonholes we need)
19
20
min_val = min(a) # min() finds the minimum value
0 commit comments