Available question text
Determine whether you can make sub equal to some contiguous substring of s by applying at most one single-step replacement (old -> new) to each character of sub from the given mappings. Equivalently, for each position compute the set of allowable characters (the original character plus any direct mappings) and check whether any length-|sub| window in s matches those per-position allowances.
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 2301. Match Substring After Replacement
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source