Problem 2301 · Hard

Match Substring After Replacement

Slide sub across s; each position matches when the characters agree or a listed replacement turns sub’s letter into s’s letter.

Open the interactive visualisation