Add Z-function algorithm implementation#2067
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. |
cclauss
left a comment
There was a problem hiding this comment.
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}.