-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
Implement prefix function, knuth-morris-pratt another usage #2099
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
Conversation
Hey @nikalosa, TravisCI finished with status TravisBuddy Request Identifier: 021ced60-ac9b-11ea-8245-836d9da6cb4c |
strings/prefix_function.py
Outdated
2 | ||
""" | ||
|
||
prefix_result = prefix_function(input_str) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why create a variable only to throw it away on the next line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed that, returning max value right away
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any more requirements for this code?
…ithms#2099) * Implement prefix function, knuth-morris-pratt another usage * fixup! Format Python code with psf/black push * Fix style * updating DIRECTORY.md * Update prefix_function.py Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Prefix function implementation, another usage of knuth-morris-pratt algorithm
Checklist:
Fixes: #{$ISSUE_NO}
.