feat: add recursive bubble sort algorithm with doctests and type hints #15198
Annotations
5 errors
|
ruff
Process completed with exit code 1.
|
|
Ruff (RUF005):
sorts/bubble_sort_recursive.py#L34
sorts/bubble_sort_recursive.py:34:12: RUF005 Consider `[*bubble_sort_recursive(arr[:-1]), arr[-1]]` instead of concatenation
|
|
Ruff (UP006):
sorts/bubble_sort_recursive.py#L4
sorts/bubble_sort_recursive.py:4:46: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP006):
sorts/bubble_sort_recursive.py#L4
sorts/bubble_sort_recursive.py:4:32: UP006 Use `list` instead of `List` for type annotation
|
|
Ruff (UP035):
sorts/bubble_sort_recursive.py#L1
sorts/bubble_sort_recursive.py:1:1: UP035 `typing.List` is deprecated, use `list` instead
|