Skip to content

Commit 498004a

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

divide_and_conquer/quicksort.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
34
def quicksort(array: list) -> list:
45
"""
56
Returns a sorted list using the quicksort algorithm.
@@ -37,6 +38,8 @@ def quicksort(array: list) -> list:
3738

3839
return [*quicksort(left), pivot, *quicksort(right)]
3940

41+
4042
if __name__ == "__main__":
4143
import doctest
44+
4245
doctest.testmod()

0 commit comments

Comments
 (0)