Problem 3303 · Hard

Find the Occurrence of First Almost Equal Substring

Slide the pattern across the text and stop each window at its second mismatch, so a match means at most one changed letter.

Open the interactive visualisation