Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion searches/double_linear_search_recursion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
def search(list_data: list, key: int, left: int = 0, right: int = 0) -> int:
from __future__ import annotations


def search(list_data: list[int], key: int, left: int = 0, right: int = 0) -> int:
"""
Iterate through the array to find the index of key using recursion.
:param list_data: the list to be searched
Expand Down
Loading