Practice · 4 of 5
Adjacent-duplicate star insertion
CHALLENGE
Difficulty: advanced+25 XP
Between every pair of **adjacent equal characters**, insert '*' (the characters themselves stay).
Examples: "aabb" → "a*ab*b"; "abc" → "abc"; "" → "".
Press Submit to check your solution.
Back to lesson: Practice: Method mastery gauntlet