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.
Pick a lowest allowed count, then delete letters below it and trim letters above it plus k; the cheapest choice wins.