Python 1-liner
Code\npython3 []\nclass Solution:\n    def minimumDeletions(self, word: str, k: int) -> int:\n        return (freq := Counter(list(word)).values()) and min(sum(
# Code\n```python3 []\nclass Solution:\n    def minimumDeletions(self, word: str, k: int) -> int:\n        return (freq := Counter(list(word)).values()) and min(sum(f if f < ref else max(f - ref - k, 0) for f in freq) for ref in freq)\n```
['Python3']