Skip to content

Commit 955819e

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

divide_and_conquer/quicksort.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def quicksort(arr: list) -> list:
99
>>> quicksort([3, 6, 8, 10, 1, 2, 1, 3, 2, 8])
1010
[1, 1, 2, 2, 3, 3, 6, 8, 8, 10]
1111
"""
12-
12+
1313
# If the length of the array is less than or equal to 1, then there's
1414
# nothing to sort, so return the given array
1515
if len(arr) <= 1:
@@ -30,6 +30,8 @@ def quicksort(arr: list) -> list:
3030
# position of the element
3131
return quicksort(smaller_elements) + pivot_elements + quicksort(larger_elements)
3232

33+
3334
if __name__ == "__main__":
3435
import doctest
36+
3537
doctest.testmod()

0 commit comments

Comments
 (0)