Rabin Karp Implementation

This is the code link to my program.Please check where my program is incorrect.

% (Modulo) is also used in hashing since you know that length of string can be as big as 1000 so power of prime will be more than even long long int . So modify it using Modulo.

Refer this code to crosscheck https://ide.codingblocks.com/s/259737

please check my code for length less than 20.please .

I have done the same thing that you have done but with some less function and for smaller length…Please check

Please do some slight change in my code…I think it can make it right

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.