Minimum replacements for adjacent distinct characters
Filed under Traveloka
The question
Given a string, find the minimum number of character replacements needed so that all adjacent characters are different.
No write-up yet. Related questions below have one.
Related Traveloka questions
Collected from public candidate posts and coding forums. Updated Nov 2026.