dirckvdende / competition-reference

A reference document that can be used in programming competitions
MIT License
1 stars 2 forks source link

Use larger primes in Rolling Hash #10

Closed dirckvdende closed 2 weeks ago

dirckvdende commented 2 weeks ago

Current implementation has a large chance of hash collisions, increase primes and use other functions to prevent int overflow