Skip to content

Commit 7b231a4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4b67591 commit 7b231a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sorts/pigeonhole_sort.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def pigeonhole_sort(a):
1111
>>> a == b
1212
True
1313
"""
14-
if not a :
15-
return # this handles empty list
14+
if not a:
15+
return # this handles empty list
1616
# size of range of values in the list (ie, number of pigeonholes we need)
1717

1818
min_val = min(a) # min() finds the minimum value
@@ -40,7 +40,7 @@ def pigeonhole_sort(a):
4040
def main():
4141
a = [8, 3, 2, 7, 4, 6, 8]
4242
pigeonhole_sort(a)
43-
print("Sorted order is:", " ".join(map(str,a))) # it converts integer into string
43+
print("Sorted order is:", " ".join(map(str, a))) # it converts integer into string
4444

4545

4646
if __name__ == "__main__":

0 commit comments

Comments
 (0)