Problem 3085 · Medium

Minimum Deletions to Make String K-Special

Pick a lowest allowed count, then delete letters below it and trim letters above it plus k; the cheapest choice wins.

Open the interactive visualisation