Help in Rabin karp algorithm.

Revision en4, by Matuagkeetarp, 2020-05-26 15:19:00

I was learning rabin karp algorithm and solving a basic problem of finding indices of pattern in a string with the help of string hashing technique. But the code is just not printing out anything.

I used this algorithm yesterday to solve a problem and got AC but now I'm unable to find where's the issue.

here's my Code Please help.

Tags #c++, #algorithms, #data structures, #string, #string matching, #strings, #algos

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Matuagkeetarp 2020-05-26 15:19:00 1546
en3 English Matuagkeetarp 2020-05-26 15:17:13 33 Tiny change: 'rn v;\n}\n\nint main' -> 'rn v;\n}\n</pre>\n<pre class="prettyprint">\nint main'
en2 English Matuagkeetarp 2020-05-26 15:16:25 74
en1 English Matuagkeetarp 2020-05-26 15:15:14 1814 Initial revision (published)