-
Notifications
You must be signed in to change notification settings - Fork 20.9k
Add Z-Algorithm for Linear-Time String Pattern Matching #7124
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
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## master #7124 +/- ## ============================================ + Coverage 78.87% 78.88% +0.01% - Complexity 6828 6837 +9 ============================================ Files 766 767 +1 Lines 22607 22629 +22 Branches 4444 4450 +6 ============================================ + Hits 17831 17851 +20 - Misses 4064 4066 +2 Partials 712 712 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Utkarsh-patel26
commented
Nov 26, 2025
Adds the Z-Algorithm implementation and unit tests.
Includes zFunction, pattern search method, and Checkstyle-clean formatting.
Reference: https://en.wikipedia.org/wiki/Z-algorithm
@DenizAltunkapan
DenizAltunkapan
left a comment
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.
Thank you for your contribution @Utkarsh-patel26
bccaf97
into
TheAlgorithms:master
clang-format -i --style=file path/to/your/file.java