thuva4 / Algorithms

Collection of algorithms in multiple programming languages.
https://thuva4.github.io/Algorithms/
Apache License 2.0
487 stars 543 forks source link

RabinKarp.cpp #797

Closed cruiz24 closed 4 years ago

cruiz24 commented 4 years ago

Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m.

thuva4 commented 4 years ago

File extension is incorrect, Please add tests.