You are given a string of lower case English letters of length N. You need to
convert this string into a "Krazy string". A Krazy string is a string having at
least one character that is present times or more.
To do so, you can perform some moves on it. In one move, you can select
one character at any position and change it to any other lower case English
character. The cost of such a move is the absolute difference between the
ASCII value of the new character and the old characteri
Find the minimum cost to change the string into a Krazy String.
Input Format
The first line contains an integer, N, denoting the length of the string
The next line contains a string, str, denoting the initial string.
The next line contains an integer, K, denoting the number of characters to be
the same.
Answers
Answered by
0
Answer:
sorry I don't know the answer
Explanation:
sorry I don't know the answer is
Similar questions