You are given a String $$S$$ of size $$N$$, consisting of lowercase English characters. Now, you need to select a single English lowercase alphabet, and delete all occurences of it from the given string $$S$$
Considering you do the mentioned exactly once over the given string, what is the minimum possible length of the resultant string ?
Input Format :
The first line contains a single integer N. The next line contains a String $$S$$ of length $$N$$ consisting of lowercase Englsh characters.
Output Format :
Print the required answer on a single line
Constraints :
$$ 1 \le N \le 100, 000 $$
Note that the Expected Output feature of Custom Invocation is not supported for this contest.
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Login to unlock the editorial