mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
Tree_sort.py: Disable slow doctest (#10584)
This commit is contained in:
parent
7acf4bf73b
commit
3923e590d7
|
@ -52,8 +52,9 @@ def tree_sort(arr: list[int]) -> tuple[int, ...]:
|
||||||
(-4, 2, 5, 7, 9)
|
(-4, 2, 5, 7, 9)
|
||||||
>>> tree_sort([5, 6, 1, -1, 4, 37, 2, 7])
|
>>> tree_sort([5, 6, 1, -1, 4, 37, 2, 7])
|
||||||
(-1, 1, 2, 4, 5, 6, 7, 37)
|
(-1, 1, 2, 4, 5, 6, 7, 37)
|
||||||
>>> tree_sort(range(10, -10, -1)) == tuple(sorted(range(10, -10, -1)))
|
|
||||||
True
|
# >>> tree_sort(range(10, -10, -1)) == tuple(sorted(range(10, -10, -1)))
|
||||||
|
# True
|
||||||
"""
|
"""
|
||||||
if len(arr) == 0:
|
if len(arr) == 0:
|
||||||
return tuple(arr)
|
return tuple(arr)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user