Leelavardhan's  Java Solution 5ms
Intuition\n Describe your first thoughts on how to solve this problem. \n Calculate the frequency of each Character and store them into a array and do sort and 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n Calculate the frequency of each Character and store them into a array and do sort and follow the approach.\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nThe question is about to delete minimum characters so that the difference between frequency of i th and j th character of the word must be less or equal to k size.\nNow the approach is \n\nStep:1\n==> **First Take two loops here --> the first loop  which iterates each element in the array.**\n\nStep:2\n==> **Now in the  second loop-->** add **K** to  one of the element \n**freq[i]** and checks the minimum value with the remaining elements \n**freq[j]** added to one declared variable so called **sum**\n\nStep:3\n==> Now take a **Max variable=Datatype large value range** ,  checks Minimum value with **Word length minus sum** \nDo the above step 2 and 3 iterately you will get the answer \n\nThank  you.\n\n**Leelavardhan** \n\n\n\n# Complexity\n- Time complexity:O(N+26*26)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n\n- Space complexity:O(30)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n\nclass Solution {\n    public int minimumDeletions(String word, int k) {\n        int freq[]=new int[26];\n        for(int i=0;i<word.length();i++){\n            freq[word.charAt(i)-\'a\']++;\n        }\n        Arrays.sort(freq);\n        int res=Integer.MAX_VALUE;\n        for(int i=0;i<26;i++){\n            int sum=0;\n            if(freq[i]!=0){\n                \n                for(int j=i;j<26;j++){\n                    if(freq[j]!=0){\n                        sum+=Math.min(freq[i]+k,freq[j]);\n                    }\n                    res=Math.min(res,word.length()-sum);\n                }\n            }\n        }\n        return res;\n\n        \n       \n    }\n}\n```
['Java']