← Goldman Sachs questions

Array Burst / Remove K Consecutive Characters

Filed under Goldman Sachs

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.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.