Skip to content

Commit c23157f

Browse files
committed
fix: binary search first occurrence and resolve global ruff linting errors
1 parent 4dc8470 commit c23157f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searches/jump_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __lt__(self, other: Any, /) -> bool: ...
2121
T = TypeVar("T", bound=Comparable)
2222

2323

24-
def jump_search(arr: list[Any], x: Any) -> int:
24+
def jump_search(arr: list, x) -> int:
2525
"""
2626
Python implementation of the jump search algorithm.
2727
Return the index if the `item` is found, otherwise return -1.

0 commit comments

Comments
 (0)