← Amazon questions

Minimize String Value After Removing k Characters

Filed under Amazon

Given a string of lowercase English letters and an integer k, remove k characters from the string such that the sum of squares of the frequencies of each distinct character is minimized. Return this…

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 Amazon questions

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