Available question text
Given a numeric string and a mapping for each digit, choose at most one contiguous substring to replace each digit by its mapped value so the resulting integer is as large as possible. The key is a greedy scan: start mutating at the first index where the mapped digit is larger and continue while mapped digits are >= original, then stop.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1946. Largest Number After Mutating Substring
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source