Skip to content
RED SAG Skills
hard20 pts · first answer countshash-mapstringscollisions

Reducing rolling hash collisions

In a contest you compare substrings by a polynomial hash mod 10^9 + 7 and get wrong answers on large hidden tests. What is a common fix that keeps O(1) comparisons?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions