mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
Update linear_search.py (#1974)
* Update linear_search.py Comment modified in line 17 as Sorting not required in Linear Search * Update linear_search.py Comment modified in line 17
This commit is contained in:
parent
69171a9ac3
commit
48bb14d4b2
|
@ -14,7 +14,7 @@ python linear_search.py
|
|||
def linear_search(sequence, target):
|
||||
"""Pure implementation of linear search algorithm in Python
|
||||
|
||||
:param sequence: some sorted collection with comparable items
|
||||
:param sequence: a collection with comparable items (as sorted items not required in Linear Search)
|
||||
:param target: item value to search
|
||||
:return: index of found item or None if item is not found
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user