Skip to content

Update linear_search.py #1974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2020
Merged

Update linear_search.py #1974

merged 2 commits into from
May 14, 2020

Conversation

Himanshu-77
Copy link
Contributor

Comment modified in line 17 as Sorting not necessary in Linear Search

Comment modified in line 17 as Sorting not required in Linear Search
@@ -14,7 +14,7 @@
def linear_search(sequence, target):
"""Pure implementation of linear search algorithm in Python

:param sequence: some sorted collection with comparable items
:param sequence: some collection with comparable items (as sorted items not required in Linear Search)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:param sequence: some collection with comparable items (as sorted items not required in Linear Search)
:param sequence: a collection with comparable items (as sorted items not required in Linear Search)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I have updated it.

Comment modified in line 17
@Himanshu-77 Himanshu-77 requested a review from cclauss May 13, 2020 15:16
@cclauss cclauss merged commit 48bb14d into TheAlgorithms:master May 14, 2020
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants