Skip to content

Commit 48bb14d

Browse files
authored
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
1 parent 69171a9 commit 48bb14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searches/linear_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def linear_search(sequence, target):
1515
"""Pure implementation of linear search algorithm in Python
1616
17-
:param sequence: some sorted collection with comparable items
17+
:param sequence: a collection with comparable items (as sorted items not required in Linear Search)
1818
:param target: item value to search
1919
:return: index of found item or None if item is not found
2020

0 commit comments

Comments
 (0)