Problem 833 · Medium

Find And Replace in String

Apply replacements from right to left so earlier indices stay valid while each match is checked on the original text.

Open the interactive visualisation