Given a string s and an integer k, repeatedly remove k adjacent identical characters (this may expose new groups) until no more removals are possible, then return the string.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.