-
Notifications
You must be signed in to change notification settings - Fork 20k
Create a new Rabin-Karp Algorithm #3201
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
This is a Rabin-Karp Algorithm for Pattern Searching
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.
The code looks good, could you just replace main()
with a couple of JUnit tests and add the .java
extension to the file? See examples of tests in src/test/
Add a j-unit test for Rabin Karp Algorithm
I have already added the JUnit test case and '.java' extension, please take your time to review, Thank You. |
src/test/java/com/thealgorithms/searches/RabinKarpAlgorithmTest
Outdated
Show resolved
Hide resolved
src/test/java/com/thealgorithms/searches/RabinKarpAlgorithmTest
Outdated
Show resolved
Hide resolved
I have already resolved the issue, please take your time to review it, thank you. |
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.
Looks good, thanks!
This is a Rabin-Karp Algorithm for Pattern Searching
Describe your change:
References
Rabin–Karp algorithm
Checklist: