We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dcb65b commit 634e0afCopy full SHA for 634e0af
1 file changed
searches/jump_search.py
@@ -20,7 +20,7 @@ def __lt__(self, other: Any, /) -> bool: ...
20
T = TypeVar("T", bound=Comparable)
21
22
23
-def jump_search(arr: Sequence[T], item: T) -> int:
+def jump_search[T](arr: Sequence[T], item: T) -> int:
24
"""
25
Python implementation of the jump search algorithm.
26
Return the index if the `item` is found, otherwise return -1.
0 commit comments