DIY: Find and Replace in a String
We'll cover the following
Problem statement
For this challenge, you will be given a string, s
. Your task will be to perform replacement operations in this string that replace substrings with new ones and return the resultant string. For the replacements, you will be given a list of indices
, a list of strings called sources
, and a list of strings ...
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Devpath's Terms of Service and Privacy Policy