Search
⌘K

Leetcode 833. Find And Replace in String

Given a string s and parallel arrays indices, sources, and targets, perform all replacements simultaneously: for each i, if sources[i] matches s starting at indices[i], replace that substring with targets[i] (replacements are guaranteed non‑overlapping). Return the resulting string.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.