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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.