str-replace-replaces-all-occurrences

Status: IN

`str.replace(d, '9')` remaps every occurrence of digit `d`, not just the first — this matches the problem's "remap a digit" semantics where choosing digit `d` affects all positions.

Source: entries/2026/06/06/maximum-difference-by-remapping-a-digit-solution.md

JSON