{{ message }}
double_linear_search algorithm - #2161
Merged
Merged
Conversation
|
Hey @reinhold-b, TravisCI finished with status TravisBuddy Request Identifier: b5a678d0-bc6b-11ea-937a-75d40a178b7c |
reinhold-b
commented
Jul 2, 2020
reinhold-b
left a comment
Contributor
Author
There was a problem hiding this comment.
removed whitespace in blank lines
reinhold-b
commented
Jul 2, 2020
ruppysuppy
reviewed
Jul 3, 2020
ruppysuppy
left a comment
Member
There was a problem hiding this comment.
There's no need of examples in the main code, all examples should be in the doctests
Member
For me, I see no reason why we should limit the main code from having examples. |
cclauss
requested changes
Jul 3, 2020
| """Implementation of a double-linear-search, | ||
| which iterates through the array from both sides: start and end. | ||
|
|
||
| Change ARRAY_LENGTH to a number you want to generate an example array, |
Member
There was a problem hiding this comment.
Lines 4 - 10 should be moved into __main__ because they are not used by your function.
stokhos
pushed a commit
to stokhos/Python
that referenced
this pull request
Jan 3, 2021
* linear search iterating from both array sides * Update double_linear_search.py * Update double_linear_search.py * added doctests * updated doctests * Update double_linear_search.py * Update double_linear_search.py * added blank after >>> * made all the requested changes * Update double_linear_search.py * Update double_linear_search.py Co-authored-by: Christian Clauss <cclauss@me.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.