Skip to content

Commit 29ddade

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

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 nothing to sort, so return the given array
1414
if len(arr) <= 1:
1515
return arr
@@ -27,6 +27,8 @@ def quicksort(arr: list) -> list:
2727
# Recursively splitting the list object to determine the correct position of the element
2828
# return quicksort(smaller_elements) + pivot_elements + quicksort(larger_elements)
2929

30+
3031
if __name__ == "__main__":
3132
import doctest
33+
3234
doctest.testmod()

0 commit comments

Comments
 (0)