Collapse Adjacent Repeated Characters (Pairs and Groups of k)
Asked at Moloco · Coding Questions · Difficulty: Medium · Last asked Jul 15, 2026
Implement two functions that repeatedly delete runs of equal adjacent characters from a string.
Loading the problem…