Given a string and an integer k, repeatedly remove k consecutive identical characters until no more such groups exist. The removal of one group may create a new group of k identical characters.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.