Several problems on rolling polynomial hashes

One of the crutial technique on the interview is "hashing". There are a lot of problems where one need to use polynomial hashes for the strings.
Below I provide solutions for several typical…
Source: Codementor