Problem 2156 · Hard

Find Substring With Given Hash Value

Find the first substring of a given length whose polynomial hash equals a target value. The visual slides a window across the string and updates the hash at each position.

Open the interactive visualisation