From 773e1b0ea2742fc24bdef7e601ee271ff18c5d9b Mon Sep 17 00:00:00 2001 From: Yaswanth Naga Sai K <140506928+YASWANTH1976@users.noreply.github.com> Date: Tue, 6 Jan 2026 23:19:09 +0530 Subject: [PATCH 1/3] Improve grammar in linear_search docstring Improved wording in the linear search docstring for better clarity. No code logic changed. --- searches/linear_search.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/searches/linear_search.py b/searches/linear_search.py index ba6e81d6bae4..944bbd5085c3 100644 --- a/searches/linear_search.py +++ b/searches/linear_search.py @@ -1,5 +1,5 @@ """ -This is pure Python implementation of linear search algorithm +This is a pure Python implementation of the linear search algorithm. For doctests run following command: python3 -m doctest -v linear_search.py @@ -11,9 +11,8 @@ def linear_search(sequence: list, target: int) -> int: """A pure Python implementation of a linear search algorithm - - :param sequence: a collection with comparable items (as sorted items not required - in Linear Search) + :param sequence: a collection with comparable items (sorting is not required for + linear search) :param target: item value to search :return: index of found item or -1 if item is not found From 87ad6297a1e38970d7ae4856aa47c0d83f6f0c25 Mon Sep 17 00:00:00 2001 From: Maxim Smolskiy Date: Mon, 9 Mar 2026 08:57:05 +0300 Subject: [PATCH 2/3] Update linear_search.py --- searches/linear_search.py | 1 + 1 file changed, 1 insertion(+) diff --git a/searches/linear_search.py b/searches/linear_search.py index 944bbd5085c3..5a03e10e5d02 100644 --- a/searches/linear_search.py +++ b/searches/linear_search.py @@ -11,6 +11,7 @@ def linear_search(sequence: list, target: int) -> int: """A pure Python implementation of a linear search algorithm + :param sequence: a collection with comparable items (sorting is not required for linear search) :param target: item value to search From 4b369480f06317f673bf4b2b5015c00d49d370d7 Mon Sep 17 00:00:00 2001 From: Maxim Smolskiy Date: Mon, 9 Mar 2026 08:57:24 +0300 Subject: [PATCH 3/3] Update linear_search.py --- searches/linear_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searches/linear_search.py b/searches/linear_search.py index 5a03e10e5d02..8adb4a7015f0 100644 --- a/searches/linear_search.py +++ b/searches/linear_search.py @@ -13,7 +13,7 @@ def linear_search(sequence: list, target: int) -> int: """A pure Python implementation of a linear search algorithm :param sequence: a collection with comparable items (sorting is not required for - linear search) + linear search) :param target: item value to search :return: index of found item or -1 if item is not found