-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Add Z-function algorithm implementation #2067
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
One Python file per pull request please. |
Sure, it was mistake. I'm going to make another PR for that file and accidentally I pushed here. |
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.
Is this related to https://en.wikipedia.org/wiki/Z_function ?
No that is not related to. Here are some additional links about the algorithm. https://contest.cs.cmu.edu/295/tutorials/z-string-matching.pdf It is really often used efficient algorithm in competitive programming. |
…strings for functions
Hey @nikalosa, TravisCI finished with status TravisBuddy Request Identifier: d7afc9d0-ac04-11ea-a7dd-93c9ffbfb007 |
Hey @nikalosa, TravisCI finished with status TravisBuddy Request Identifier: b2fe24d0-ac07-11ea-a7dd-93c9ffbfb007 |
Because of new merged file (./conversions/decimal_to_any.py), checks have failed for my code. The log: |
Hey @nikalosa, TravisCI finished with status TravisBuddy Request Identifier: 1369cce0-ac0b-11ea-a7dd-93c9ffbfb007 |
* Add Z-function algorithm implementation * Spelling correction * Reference url correction * Add additional function as an example of z-function usage, change docstrings for functions * Fix flake8 errors * Update z_function.py Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.