Skip to main content

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"; "" → "".

Back to lesson: Practice: Method mastery gauntlet