Update linear_search.py (#2422) · programmin1/Python@799fde4 · GitHub
Skip to content

Commit 799fde4

Browse files
Update linear_search.py (TheAlgorithms#2422)
* Update linear_search.py Python implementation of recursive linear search algorithm * Update linear_search.py Added different doctests Added the parameter hints Handled the exception * Update linear_search.py added parameter hints to linear_search * Update linear_search.py Both the functions return the index if the target is found and -1 if it is not found The rec_linear_search raises an exception if there is an indexing problem Made changes in the doc comments * Update linear_search.py Co-authored-by: Christian Clauss <cclauss@me.com>
1 parent 4e5b730 commit 799fde4

1 file changed

Lines changed: 42 additions & 16 deletions

File tree

searches/linear_search.py

Lines changed: 42 additions & 16 deletions

0 commit comments

Comments
 (0)