Improve binary search #14455
+229
−235
Open
Improve binary search #14455
Annotations
10 errors
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L347
searches/binary_search.py:347:5: UP047 Generic function `exponential_search` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L329
searches/binary_search.py:329:5: UP047 Generic function `_binary_search_recursive` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L293
searches/binary_search.py:293:5: UP047 Generic function `binary_search_by_recursion` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L265
searches/binary_search.py:265:5: UP047 Generic function `binary_search_with_duplicates` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L239
searches/binary_search.py:239:5: UP047 Generic function `binary_search_std_lib` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L204
searches/binary_search.py:204:5: UP047 Generic function `binary_search` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L171
searches/binary_search.py:171:5: UP047 Generic function `insort_right` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L143
searches/binary_search.py:143:5: UP047 Generic function `insort_left` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L97
searches/binary_search.py:97:5: UP047 Generic function `bisect_right` should use type parameters
help: Use type parameters
|
|
Run uvx ruff check --output-format=github .:
searches/binary_search.py#L56
searches/binary_search.py:56:5: UP047 Generic function `bisect_left` should use type parameters
help: Use type parameters
|
Loading