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
2020-07-06 09:44:19 +02:00
2020-09-13 13:56:03 +02:00
2020-07-06 09:44:19 +02:00
2020-07-06 09:44:19 +02:00
2020-09-13 10:11:27 +02:00
2020-09-13 10:11:27 +02:00
2020-04-07 23:56:21 +02:00
2020-07-06 09:44:19 +02:00
2020-09-14 12:44:46 +02:00
2019-11-17 19:37:58 +01:00
2020-08-31 21:34:44 +02:00
2020-09-13 13:56:03 +02:00
2020-04-13 02:17:29 +02:00

The Algorithms - Python

Gitpod Ready-to-Code Gitter chat  Build Status  LGTM  contributions welcome  Donate   

All algorithms implemented in Python (for education)

These implementations are for learning purposes. They may be less efficient than the implementations in the Python standard library.

Contribution Guidelines

Read our Contribution Guidelines before you contribute.

Community Channel

We're on Gitter! Please join us.

List of Algorithms

See our directory.

Languages
Python 99.9%
Shell 0.1%