String replacement based on indices
Filed under DP World
The question
Given a string s and arrays of indices, sources, and targets, replace occurrences of source strings at specified indices with target strings.
No write-up yet. Related questions below have one.
Related DP World questions
Collected from public candidate posts and coding forums. Updated Nov 2026.