Rabin Karp - Code — Interactive Visualizer

Find pattern matches in text using a rolling hash to avoid O(M) comparisons.