Available question text
Replace each '?' in a lowercase string with a lowercase letter so that no two adjacent characters are equal, without changing the given letters. The problem reduces to making local choices per '?' (avoid its immediate neighbors), and a valid solution is always guaranteed.
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 1576. Replace All ?'s to Avoid Consecutive Repeating Characters
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source