Python/searches
Ashley Jeji George 799fde4c07
Update linear_search.py (#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>
2020-09-14 12:44:46 +02:00
..
binary_search.py fix doctests for recursive binary search (#2229) 2020-08-01 07:26:04 +02:00
double_linear_search.py double_linear_search algorithm (#2161) 2020-07-04 11:23:23 +02:00
fibonacci_search.py psf/black code formatting (#1421) 2019-10-22 19:13:48 +02:00
hill_climbing.py isort --profile black . (#2181) 2020-07-06 09:44:19 +02:00
interpolation_search.py contribution guidelines checks (#1787) 2020-03-04 13:40:28 +01:00
jump_search.py Jump search (#2415) 2020-09-12 07:50:12 +02:00
linear_search.py Update linear_search.py (#2422) 2020-09-14 12:44:46 +02:00
quick_select.py Update quick_select.py (#1523) 2019-10-30 16:10:30 +01:00
sentinel_linear_search.py contribution guidelines checks (#1787) 2020-03-04 13:40:28 +01:00
simple-binary-search.py create simple binary search (#1430) 2019-10-24 10:31:58 +02:00
simulated_annealing.py isort --profile black . (#2181) 2020-07-06 09:44:19 +02:00
tabu_search.py isort --profile black . (#2181) 2020-07-06 09:44:19 +02:00
tabu_test_data.txt .txt instead of .py 2018-10-19 17:38:11 -05:00
ternary_search.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00