From 48bb14d4b2d73ac6c9b9ff430846156b90b101e8 Mon Sep 17 00:00:00 2001 From: Himanshu Airan <62210670+Himanshu-77@users.noreply.github.com> Date: Thu, 14 May 2020 20:22:43 +0530 Subject: [PATCH] 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 --- 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 adf22056b..155119bb4 100644 --- a/searches/linear_search.py +++ b/searches/linear_search.py @@ -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