Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit551774e

Browse files
author
Christian Bender
committed
correct name again
1 parent5fc4641 commit551774e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎allalgorithms/sorting/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .insertion_sortimportinsertion_sort
33
from .selection_sortimportselection_sort
44
from .bubble_sortimportbubble_sort
5-
from .pidgeonhole_sortimportpidgeonhole_sort
5+
from .pigeonhole_sortimportpigeonhole_sort
66
from .stooge_sortimportstooge_sort
77
from .cocktail_shaker_sortimportcocktail_shaker_sort
88
from .tree_sortimporttree_sort

‎allalgorithms/sorting/pidgeonhole_sort.py‎renamed to ‎allalgorithms/sorting/pigeonhole_sort.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Github: @martmists
88
#
99

10-
defpidgeonhole_sort(data):
10+
defpigeonhole_sort(data):
1111
minimum=min(data)
1212
size=max(data)-minimum+1
1313
holes= [0]*size

‎tests/test_sorting.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
insertion_sort,
66
merge_sort,
77
selection_sort,
8-
pidgeonhole_sort,
8+
pigeonhole_sort,
99
stooge_sort,
1010
cocktail_shaker_sort,
1111
tree_sort
@@ -26,7 +26,7 @@ def test_selection_sort(self):
2626
self.assertEqual([-44,1,2,3,7,19],selection_sort([7,3,2,19,-44,1]))
2727

2828
deftest_pigeonhole_sort(self):
29-
self.assertEqual([-44,1,2,3,7,19],pidgeonhole_sort([7,3,2,19,-44,1]))
29+
self.assertEqual([-44,1,2,3,7,19],pigeonhole_sort([7,3,2,19,-44,1]))
3030

3131
deftest_stooge_sort(self):
3232
self.assertEqual([-44,1,2,3,7,19],stooge_sort([7,3,2,19,-44,1]))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp