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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This codebase ONLY runs on Python 3.15t so this line is NOT needed.



def search(list_data: list[int], key: int, left: int = 0, right: int = 0) -> int:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we only want limit search to work on ints?!?

"""
Iterate through the array to find the index of key using recursion.
:param list_data: the list to be searched
Expand Down
Loading