Help in Rabin karp algorithm.

Правка en4, от 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.

Теги #c++, #algorithms, #data structures, #string, #string matching, #strings, #algos

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский Matuagkeetarp 2020-05-26 15:19:00 1546
en3 Английский 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 Английский Matuagkeetarp 2020-05-26 15:16:25 74
en1 Английский Matuagkeetarp 2020-05-26 15:15:14 1814 Initial revision (published)