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
2 changes: 2 additions & 0 deletions searches/double_linear_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def double_linear_search(array: list[int], search_item: int) -> int:
-1
>>> double_linear_search([1, 5, 5, 10], 10)
3
>>> double_linear_search([], 1) # Empty array edge case
-1
"""
# define the start and end index of the given array
start_ind, end_ind = 0, len(array) - 1
Expand Down
Loading