Skip to content

Commit b6f8f16

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

maths/median_of_medians.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ def median_of_medians(arr: list, k: int) -> int:
6363

6464
if __name__ == "__main__":
6565
import doctest
66+
6667
doctest.testmod()
67-
68+
6869
sample = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]
6970
print(f"Array: {sample}")
7071
for i in range(1, len(sample) + 1):
71-
print(f" {i}-th smallest: {median_of_medians(sample, i)}")
72+
print(f" {i}-th smallest: {median_of_medians(sample, i)}")

0 commit comments

Comments
 (0)