← Questions
Repeatedly remove runs of equal adjacent characters
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Remove every run of two or more equal adjacent characters, and keep doing it as new runs form, until none remain. For example xyyyx becomes xx and then the empty string. Do it in one pass with a stack of characters and run lengths.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
