← Salesforce questions
CodingReported in a candidate post, Jul 2025

Reduce string by removing k consecutive identical characters

Filed under Salesforce · Also reported at Cashfree Payments

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.

Related Salesforce questions

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