We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4710e51 commit 8cce9cfCopy full SHA for 8cce9cf
searches/linear_search.py
@@ -15,7 +15,7 @@ def linear_search(sequence: list, target: int) -> int:
15
:param sequence: a collection with comparable items (as sorted items not required
16
in Linear Search)
17
:param target: item value to search
18
- :return: index of found item or None if item is not found
+ :return: index of found item or -1 if item is not found
19
20
Examples:
21
>>> linear_search([0, 5, 7, 10, 15], 0)
0 commit comments