sexy + hot code
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int minimumDeletions(string word, int k) {\n    vector <int> freq(26 , 0);\n    \n    for(int i =0; i<word.size(); i++)\n    freq[word[i]-\'a\']++;   \n    \n \n\n\n\n    int result = INT_MAX;\n    for(int i =0; i<26; i++)\n    {\n    int deleted_char = 0;\n    for(int j =0; j<26;  j++)\n    {\n     if(j==i) continue;\n\n     if (freq[j] < freq[i])   deleted_char += freq[j];\n     \n     else if(abs(freq[j] - freq[i]) > k)   \n     {\n        deleted_char += abs(freq[j] - freq[i]-k);\n     }\n\n\n    }\ncout<<deleted_char<<"         ";\nresult  =   min(result , deleted_char);\n    }\n\n    \n    return result;\n    \n    \n    \n    }\n};\n```
['C++']