Game with String | Problem of the day
Given a string s of lowercase alphabets and a number k, the task is to print the minimum value of the string after removal of k characters. The value of a string is defined as the sum of squares of the count of each distinct character present in the string. Example 1: Input: s = abccc, k = 1Output: 6Explaination:We … Read more